mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #40251 from mml/sudo
Automatic merge from submit-queue (batch tested with PRs 40251, 40171) Only run gcloud as root if we plan to change something. Only run gcloud as root if we plan to change something. Fixes bug introduced in #36292 @jlowdermilk @ixdy
This commit is contained in:
commit
7065c477cb
@ -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
Block a user