Fix kube-push.sh

This commit is contained in:
Joe Beda 2014-11-11 17:10:08 -08:00
parent cf21f97cd2
commit 4f62efcc23

View File

@ -18,9 +18,13 @@
# #
# $1 is the URL to download # $1 is the URL to download
download-or-bust() { download-or-bust() {
local -r url="$1"
local -r file="${url##*/}"
rm -f "$file"
until [[ -e "${1##*/}" ]]; do until [[ -e "${1##*/}" ]]; do
echo "Downloading binary release tar ($SERVER_BINARY_TAR_URL)" echo "Downloading file ($SERVER_BINARY_TAR_URL)"
curl --ipv4 -LO --connect-timeout 20 --retry 6 --retry-delay 10 "$1" curl --ipv4 -Lo "$file" --connect-timeout 20 --retry 6 --retry-delay 10 "$1"
md5sum "$file"
done done
} }