mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: plugin extension commands to not require bin/
directory (#1643)
This commit is contained in:
parent
b45f1dc9d7
commit
61420ad908
2
bin/asdf
2
bin/asdf
@ -48,7 +48,6 @@ find_asdf_cmd() {
|
||||
|
||||
find_plugin_cmd() {
|
||||
local ASDF_CMD_FILE args_offset
|
||||
if [ -d "$(get_plugin_path "$1")/bin" ]; then
|
||||
local result=
|
||||
result="$(find_cmd "$(get_plugin_path "$1")/lib/commands" "${@:2}")"
|
||||
ASDF_CMD_FILE=${result% *}
|
||||
@ -57,7 +56,6 @@ find_plugin_cmd() {
|
||||
args_offset=$((args_offset + 1)) # since the first argument is the plugin name
|
||||
printf "%s %s\n" "$ASDF_CMD_FILE" "$args_offset"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
asdf_cmd() {
|
||||
|
Loading…
Reference in New Issue
Block a user