Merge pull request #2314 from jbeda/kube-push-fix

Fix kube-push.sh
This commit is contained in:
Daniel Smith 2014-11-11 17:20:17 -08:00
commit bb3ce3ef7a

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
}