Skip to content

Commit

Permalink
Update .evergreen/download-mongodb.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com>
  • Loading branch information
blink1073 and eramongodb authored Sep 17, 2024
1 parent e2eeaad commit f24ed05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .evergreen/download-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ set_url_win32 ()
# curl_retry runs curl with up to three retries, retrying any error.
curl_retry ()
{
for i in 2 4 8; do curl --fail -sS --max-time 300 "$@" && break || sleep $i;
for i in 1 2 4 8 16; do
{ curl --fail -sS --max-time 300 "$@" && return 0; } || sleep $i
done
return 1
done
}

Expand Down

0 comments on commit f24ed05

Please sign in to comment.