mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Don't ever give up on retrying downloads in the GCE download-or-bust function.
This commit is contained in:
parent
3f2309ad15
commit
4f9b1c486f
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user