diff --git a/lib/utils.bash b/lib/utils.bash index de8be70..e616c6a 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -48,7 +48,7 @@ download_release() { install_version() { local install_type="$1" local version="$2" - local install_path="${3%/bin}/bin" + local install_path="${3%/bin}" if [ "$install_type" != "version" ]; then fail "asdf-$TOOL_NAME supports release installs only" @@ -60,8 +60,7 @@ install_version() { local tool_cmd tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)" - chmod +x "$install_path/$tool_cmd" - test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable." + test -x "$install_path/bin/$tool_cmd" || fail "Expected $install_path/bin/$tool_cmd to be executable." echo "$TOOL_NAME $version installation was successful!" ) || (