diff --git a/bin/download b/bin/download index 00636a8..4536317 100755 --- a/bin/download +++ b/bin/download @@ -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"