Skip to content

Commit f7569ea

Browse files
authored
Merge pull request #2 from johnbuhay/patch-1
change xz to gz
2 parents f34b86e + 940e252 commit f7569ea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bin/download

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ source "${plugin_dir}/lib/utils.bash"
1010

1111
mkdir -p "$ASDF_DOWNLOAD_PATH"
1212

13-
# TODO: Adapt this to proper extension and adapt extracting strategy.
14-
release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.xz"
13+
release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.tar.gz"
1514

16-
# Download tar.xz file to the download directory
15+
# Download tar.gz file to the download directory
1716
download_release "$ASDF_INSTALL_VERSION" "$release_file"
1817

1918
tar -xf "$release_file" -C "$ASDF_DOWNLOAD_PATH" || fail "Could not extract $release_file"

lib/utils.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ download_release() {
5353
local arch=$arch_test
5454
fi
5555

56-
url="$GH_REPO/releases/download/v${version}/flarectl_${version}_${platform}_${arch}.tar.xz"
56+
url="$GH_REPO/releases/download/v${version}/flarectl_${version}_${platform}_${arch}.tar.gz"
5757

5858
echo "* Downloading $TOOL_NAME release $version..."
5959
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"

0 commit comments

Comments
 (0)