From 7e3ec8d9ce6f292f41c1f4c71a0268259dbe11b3 Mon Sep 17 00:00:00 2001 From: Martino Pizzol Date: Wed, 13 Mar 2024 09:03:21 +0100 Subject: [PATCH] tool_name_fix --- bin/download | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"