Allow older Ubuntu versions

This commit is contained in:
hansieodendaal 2026-01-08 12:08:11 +02:00
parent 0576f58a19
commit 264510c2eb
No known key found for this signature in database
GPG Key ID: D341DA7FC6098627

View File

@ -119,7 +119,16 @@ setup_nomos_circuits::download_release() {
setup_nomos_circuits::print_info "Downloading nomos-circuits ${VERSION} for ${platform}..."
setup_nomos_circuits::print_info "URL: ${url}"
local -a curl_args=(curl -fL --retry "${CURL_RETRY_COUNT}" --retry-delay "${CURL_RETRY_DELAY_SECONDS}" --retry-all-errors)
local -a curl_args=(
curl
-fL
--retry "${CURL_RETRY_COUNT}"
--retry-delay "${CURL_RETRY_DELAY_SECONDS}"
)
if curl --help 2>/dev/null | grep -q -- '--retry-all-errors'; then
curl_args+=(--retry-all-errors)
fi
if [ -n "${GITHUB_TOKEN:-}" ]; then
curl_args+=(--header "authorization: Bearer ${GITHUB_TOKEN}")
fi