Fix kube-push.sh

pull/6/head
Joe Beda 2014-11-11 17:10:08 -08:00
parent cf21f97cd2
commit 4f62efcc23
1 changed files with 6 additions and 2 deletions

View File

@ -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
}