Skip to content

Commit

Permalink
amd64 binaries are renamed after 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Düvel committed May 20, 2024
1 parent 345a297 commit fcad73a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ list_all_versions() {
}

download_release() {
local version filename url
local version filename url url_post_070
version="$1"
filename="$2"
url="$GH_REPO/releases/download/v${version}/k2tf_${version}_$(uname)_x86_64.tar.gz"
url_post_070=$(url/_x86_64/amd64/)
echo "* Downloading $TOOL_NAME release $version..."
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
}
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || \
curl "${curl_opts[@]}" -o "$filename" -C - "$url_post_070" || \
fail "Could not download $url_post_070"
}

install_version() {
local install_type="$1"
Expand Down

0 comments on commit fcad73a

Please sign in to comment.