Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
svenluijten committed Aug 19, 2023
1 parent cd8f660 commit 61788e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ download_release() {
echo "** Arch: $arch"
echo "** Version: $version"

url=$(curl -s "https://api.github.com/repos/guumaster/hostctl/releases/tags/v${version}" | grep -o -E "https://.+?_${platform}_${arch}.tar.gz")
url=$(curl --silent "https://api.github.com/repos/guumaster/hostctl/releases/tags/v${version}" | grep --only-matching --ignore-case --extended-regexp "https://.+?_${platform}_${arch}\.tar\.gz")

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

0 comments on commit 61788e6

Please sign in to comment.