mirror of https://github.com/k3s-io/k3s
Fix kube-push.sh
parent
cf21f97cd2
commit
4f62efcc23
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue