mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
17 lines
373 B
Bash
17 lines
373 B
Bash
# -*- sh -*-
|
|
|
|
plugin_remove_command() {
|
|
local plugin_name=$1
|
|
check_if_plugin_exists "$plugin_name"
|
|
|
|
local plugin_path
|
|
plugin_path=$(get_plugin_path "$plugin_name")
|
|
|
|
rm -rf "$plugin_path"
|
|
rm -rf "$(asdf_data_dir)/installs/${plugin_name}"
|
|
|
|
grep -l "asdf-plugin: ${plugin_name}" "$(asdf_data_dir)"/shims/* 2>/dev/null | xargs rm -f
|
|
}
|
|
|
|
plugin_remove_command "$@"
|