Skip to content

Commit

Permalink
tool_name_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Martino Pizzol committed Mar 13, 2024
1 parent 4d31758 commit 7e3ec8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ get_cpu() {
echo "$cpu_type"
}

get_tool_name() {
echo $TOOL_NAME
}

# shellcheck source=./lib/utils.bash
source "${plugin_dir}/lib/utils.bash"

mkdir -p "$ASDF_DOWNLOAD_PATH"
# TODO: Adapt this to proper extension and adapt extracting strategy.
release_file="$ASDF_DOWNLOAD_PATH/$ASDF_INSTALL_VERSION/$TOOL_NAME_$(get_arch)_$(get_cpu).tar.gz"
release_file="$ASDF_DOWNLOAD_PATH/$ASDF_INSTALL_VERSION/$(get_tool_name)_$(get_arch)_$(get_cpu).tar.gz"

# Download tar.gz file to the download directory
download_release "$ASDF_INSTALL_VERSION" "$release_file"
Expand Down

0 comments on commit 7e3ec8d

Please sign in to comment.