Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
komi1230 committed Jul 17, 2024
1 parent 0abd51f commit c74f844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ source "${plugin_dir}/lib/utils.bash"

mkdir -p "$ASDF_DOWNLOAD_PATH"

release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-v$ASDF_INSTALL_VERSION"
release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION"

download_release "$ASDF_INSTALL_VERSION" "$release_file"
3 changes: 2 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ download_release() {

install_version() {
local install_type="$1"
local version="v$2"
local version="$2"
local install_path="${3%/bin}/bin"

if [ "$install_type" != "version" ]; then
Expand All @@ -68,6 +68,7 @@ install_version() {

local tool_cmd
tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)"

test -x "$install_path/$tool_cmd" || fail "Expected $install_path/$tool_cmd to be executable."

echo "$TOOL_NAME $version installation was successful!"
Expand Down

0 comments on commit c74f844

Please sign in to comment.