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/2] #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" From 940e2529b6b847cdc952d41bac6f174802770172 Mon Sep 17 00:00:00 2001 From: John Buhay <6697003+johnbuhay@users.noreply.github.com> Date: Sun, 28 Jan 2024 09:14:21 -0500 Subject: [PATCH 2/2] #1 utils.bash change xz to gz file extension --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index 97f4f35..7f60798 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -53,7 +53,7 @@ download_release() { local arch=$arch_test fi - url="$GH_REPO/releases/download/v${version}/flarectl_${version}_${platform}_${arch}.tar.xz" + url="$GH_REPO/releases/download/v${version}/flarectl_${version}_${platform}_${arch}.tar.gz" echo "* Downloading $TOOL_NAME release $version..." curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"