From 4f9b1c486f50844744a76b5fb78e637efcd6ea90 Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Thu, 2 Apr 2015 00:40:19 +0000 Subject: [PATCH] Don't ever give up on retrying downloads in the GCE download-or-bust function. --- cluster/gce/configure-vm.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cluster/gce/configure-vm.sh b/cluster/gce/configure-vm.sh index 2e929bbdcc7..92325024a9c 100644 --- a/cluster/gce/configure-vm.sh +++ b/cluster/gce/configure-vm.sh @@ -104,9 +104,8 @@ download-or-bust() { local -r url="$1" local -r file="${url##*/}" rm -f "$file" - until [[ -e "${1##*/}" ]]; do - echo "Downloading file ($1)" - curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1" + until curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1"; do + echo "Failed to download file ($1). Retrying." done }