From 4f62efcc23c8a606ceba4848e2eb820a7a8ae387 Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Tue, 11 Nov 2014 17:10:08 -0800 Subject: [PATCH] Fix kube-push.sh --- cluster/gce/templates/common.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cluster/gce/templates/common.sh b/cluster/gce/templates/common.sh index 784f58685d6..43fab604343 100644 --- a/cluster/gce/templates/common.sh +++ b/cluster/gce/templates/common.sh @@ -18,9 +18,13 @@ # # $1 is the URL to download download-or-bust() { + local -r url="$1" + local -r file="${url##*/}" + rm -f "$file" until [[ -e "${1##*/}" ]]; do - echo "Downloading binary release tar ($SERVER_BINARY_TAR_URL)" - curl --ipv4 -LO --connect-timeout 20 --retry 6 --retry-delay 10 "$1" + echo "Downloading file ($SERVER_BINARY_TAR_URL)" + curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1" + md5sum "$file" done }