diff --git a/bin/asdf b/bin/asdf index 633d1bc6b..2507f58fe 100755 --- a/bin/asdf +++ b/bin/asdf @@ -48,15 +48,13 @@ 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% *} - args_offset=${result##* } - if [ -n "$ASDF_CMD_FILE" ]; then - args_offset=$((args_offset + 1)) # since the first argument is the plugin name - printf "%s %s\n" "$ASDF_CMD_FILE" "$args_offset" - fi + local result= + result="$(find_cmd "$(get_plugin_path "$1")/lib/commands" "${@:2}")" + ASDF_CMD_FILE=${result% *} + args_offset=${result##* } + if [ -n "$ASDF_CMD_FILE" ]; then + args_offset=$((args_offset + 1)) # since the first argument is the plugin name + printf "%s %s\n" "$ASDF_CMD_FILE" "$args_offset" fi }