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"