mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Update get-kube.sh to not re-download the kubernetes archive
This commit is contained in:
parent
d30f99b377
commit
fc9cac1594
@ -120,9 +120,9 @@ if [[ -n "${KUBERNETES_SKIP_CONFIRM-}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(which wget) ]]; then
|
if [[ $(which wget) ]]; then
|
||||||
wget -O ${file} ${release_url}
|
wget -N ${release_url}
|
||||||
elif [[ $(which curl) ]]; then
|
elif [[ $(which curl) ]]; then
|
||||||
curl -L -o ${file} ${release_url}
|
curl -L -z ${file} ${release_url} -o ${file}
|
||||||
else
|
else
|
||||||
echo "Couldn't find curl or wget. Bailing out."
|
echo "Couldn't find curl or wget. Bailing out."
|
||||||
exit 1
|
exit 1
|
||||||
@ -130,6 +130,5 @@ fi
|
|||||||
|
|
||||||
echo "Unpacking kubernetes release ${release}"
|
echo "Unpacking kubernetes release ${release}"
|
||||||
tar -xzf ${file}
|
tar -xzf ${file}
|
||||||
rm ${file}
|
|
||||||
|
|
||||||
create_cluster
|
create_cluster
|
||||||
|
Loading…
Reference in New Issue
Block a user