retry curl if it fails
This commit is contained in:
parent
16005799d5
commit
db31a67bac
|
@ -31,7 +31,7 @@ dl_version() {
|
|||
for flavour in "${FLAVOURS[@]}"; do
|
||||
if [[ ! -e "${flavour}.tar.gz" ]]; then
|
||||
echo "Downloading: ${version}/${flavour}.tar.gz"
|
||||
curl --location --remote-name --silent --show-error \
|
||||
curl --location --remote-name --silent --show-error --retry 3 \
|
||||
"https://github.com/ethereum/consensus-spec-tests/releases/download/${version}/${flavour}.tar.gz" \
|
||||
|| {
|
||||
echo "Curl failed. Aborting"
|
||||
|
|
Loading…
Reference in New Issue