mirror of https://github.com/k3s-io/k3s
Use gcloud install instead of gcloud update for components to remove
the annoying prompt. Fixes #18374pull/6/head
parent
fdc433a9ee
commit
48a84bae68
|
@ -79,8 +79,8 @@ function verify-prereqs {
|
|||
if [ ! -w $(dirname `which gcloud`) ]; then
|
||||
sudo_prefix="sudo"
|
||||
fi
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update alpha || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update beta || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install alpha || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update || true
|
||||
}
|
||||
|
||||
|
|
|
@ -98,10 +98,9 @@ function verify-prereqs() {
|
|||
if [ ! -w $(dirname `which gcloud`) ]; then
|
||||
sudo_prefix="sudo"
|
||||
fi
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update alpha || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update beta || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update ${CMD_GROUP:-} || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update kubectl|| true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install alpha || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta || true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install kubectl|| true
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update || true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue