mirror of
https://github.com/boostorg/boost-ci.git
synced 2026-01-19 04:02:12 +00:00
Simplify cURL retry check
This commit is contained in:
@@ -11,10 +11,9 @@
|
||||
|
||||
set -eu
|
||||
|
||||
curl_extra_options=""
|
||||
if curl --retry-all-errors 2>&1 | grep -i unknown > /dev/null ; then
|
||||
if curl --retry-all-errors 2>&1 | grep -iq unknown; then
|
||||
# --retry-all-errors not available
|
||||
true
|
||||
curl_extra_options=""
|
||||
else
|
||||
curl_extra_options="--retry-all-errors"
|
||||
fi
|
||||
|
||||
@@ -8,10 +8,9 @@
|
||||
|
||||
set -e
|
||||
|
||||
curl_extra_options=""
|
||||
if curl --retry-all-errors 2>&1 | grep -i unknown > /dev/null ; then
|
||||
if curl --retry-all-errors 2>&1 | grep -iq unknown; then
|
||||
# --retry-all-errors not available
|
||||
true
|
||||
curl_extra_options=""
|
||||
else
|
||||
curl_extra_options="--retry-all-errors"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user