Fix CMD_GROUP reference to not fail if CMD_GROUP isn't set

pull/6/head
Isaac Hollander McCreery 2016-03-17 00:27:30 -07:00
parent 865d233aba
commit 4ca19568bf
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function fetch_output_tars() {
function fetch_server_version_tars() {
clean_binaries
local -r msg=$(gcloud ${CMD_GROUP} container get-server-config --project=${PROJECT} --zone=${ZONE} | grep defaultClusterVersion)
local -r msg=$(gcloud ${CMD_GROUP:-} container get-server-config --project=${PROJECT} --zone=${ZONE} | grep defaultClusterVersion)
# msg will look like "defaultClusterVersion: 1.0.1". Strip
# everything up to, including ": "
local -r build_version="v${msg##*: }"