[Ubuntu] Set flags for curl (#7993)

This commit is contained in:
Vasilii Polikarpov
2023-07-28 20:18:41 +02:00
committed by GitHub
parent 3c7978b116
commit 7e863227d7
26 changed files with 33 additions and 33 deletions

View File

@@ -72,7 +72,7 @@ get_github_package_download_url() {
local VERSION=$3
local SEARCH_IN_COUNT="100"
json=$(curl -sSL "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
json=$(curl -fsSL "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
if [ -n "$VERSION" ]; then
tagName=$(echo $json | jq -r '.[] | select(.prerelease==false).tag_name' | sort --unique --version-sort | egrep -v ".*-[a-z]|beta" | egrep "\w*${VERSION}" | tail -1)