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

pull/6/head
Matt Liggett 2017-01-20 17:18:05 -08:00
parent 6b293d4c13
commit 0a4981ebf4
1 changed files with 1 additions and 1 deletions

View File

@ -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