Commit 7065c477 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents 46bfa1ee 0a4981eb
...@@ -1069,7 +1069,7 @@ function update-or-verify-gcloud() { ...@@ -1069,7 +1069,7 @@ function update-or-verify-gcloud() {
${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta ${sudo_prefix} gcloud ${gcloud_prompt:-} components install beta
${sudo_prefix} gcloud ${gcloud_prompt:-} components update ${sudo_prefix} gcloud ${gcloud_prompt:-} components update
else else
local version=$(${sudo_prefix} gcloud version --format=json) local version=$(gcloud version --format=json)
python -c' python -c'
import json,sys import json,sys
from distutils import version from distutils import version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment