mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #18899 from marun/fix-get-kube-local
Auto commit by PR queue bot
This commit is contained in:
commit
3c60d90a55
@ -114,7 +114,7 @@ function get_latest_version_number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
latest_release=$(get_latest_version_number)
|
latest_release=$(get_latest_version_number)
|
||||||
release=${KUBE_VERSION:-latest_release}
|
release=${KUBE_VERSION:-${latest_release}}
|
||||||
|
|
||||||
uname=$(uname)
|
uname=$(uname)
|
||||||
if [[ "${uname}" == "Darwin" ]]; then
|
if [[ "${uname}" == "Darwin" ]]; then
|
||||||
@ -151,7 +151,7 @@ if [[ $(ls . | grep ^kubectl$ | wc -l) -lt 1 ]]; then
|
|||||||
if [[ $(which wget) ]]; then
|
if [[ $(which wget) ]]; then
|
||||||
run "wget ${kubectl_url}"
|
run "wget ${kubectl_url}"
|
||||||
elif [[ $(which curl) ]]; then
|
elif [[ $(which curl) ]]; then
|
||||||
run "curl -L ${kubectl_url}"
|
run "curl -OL ${kubectl_url}"
|
||||||
else
|
else
|
||||||
echo_red "Couldn't find curl or wget. Bailing out."
|
echo_red "Couldn't find curl or wget. Bailing out."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user