mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-17 03:33:08 +00:00
Allow older Ubuntu versions
This commit is contained in:
parent
0576f58a19
commit
264510c2eb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user