fix: plugin extension commands to not require bin/ directory (#1643)

This commit is contained in:
Edwin Kofler 2023-09-17 04:50:47 -07:00 committed by GitHub
parent b45f1dc9d7
commit 61420ad908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {