[Ubuntu] update curl command to work with https (#7723)

This commit is contained in:
Alexey-Ayupov
2023-06-14 13:22:02 +02:00
committed by GitHub
parent d6aaf8d481
commit 6d66d249ac

View File

@@ -72,7 +72,7 @@ get_github_package_download_url() {
local VERSION=$3
local SEARCH_IN_COUNT="100"
json=$(curl -s "https://api.github.com/repos/${REPO_ORG}/releases?per_page=${SEARCH_IN_COUNT}")
json=$(curl -sSL "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)