mirror of https://github.com/k3s-io/k3s
Only run gcloud as root if we plan to change something.
parent
6b293d4c13
commit
0a4981ebf4
|
@ -1069,7 +1069,7 @@ function update-or-verify-gcloud() {
|
|||
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta
|
||||
${sudo_prefix} gcloud ${gcloud_prompt:-} components update
|
||||
else
|
||||
local version=$(${sudo_prefix} gcloud version --format=json)
|
||||
local version=$(gcloud version --format=json)
|
||||
python -c'
|
||||
import json,sys
|
||||
from distutils import version
|
||||
|
|
Loading…
Reference in New Issue