Commit b3413eaa authored by Zach Loafman's avatar Zach Loafman

Merge pull request #6332 from a-robinson/bust

Don't ever give up on retrying downloads in the GCE download-or-bust function
parents 8cd8a8f0 4f9b1c48
...@@ -104,9 +104,8 @@ download-or-bust() { ...@@ -104,9 +104,8 @@ download-or-bust() {
local -r url="$1" local -r url="$1"
local -r file="${url##*/}" local -r file="${url##*/}"
rm -f "$file" rm -f "$file"
until [[ -e "${1##*/}" ]]; do until curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1"; do
echo "Downloading file ($1)" echo "Failed to download file ($1). Retrying."
curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1"
done done
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment