Commit 0a4981eb authored by Matt Liggett's avatar Matt Liggett

Only run gcloud as root if we plan to change something.

parent 6b293d4c
......@@ -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
......
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