From 15ccce091a02fbe27512b6aed9482399e6c66e0b Mon Sep 17 00:00:00 2001 From: John Buhay <6697003+johnbuhay@users.noreply.github.com> Date: Sun, 28 Jan 2024 09:12:35 -0500 Subject: [PATCH] #1 change xz to gz file extension --- bin/download | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/download b/bin/download index 0440f28..d0b9948 100755 --- a/bin/download +++ b/bin/download @@ -10,10 +10,9 @@ 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/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.xz" +release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.gz" -# Download tar.xz file to the download directory +# Download tar.gz file to the download directory download_release "$ASDF_INSTALL_VERSION" "$release_file" tar -xf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"