Merge pull request #6258 from zmerlynn/fix_gke_util

Fix gke/util.sh
This commit is contained in:
Zach Loafman 2015-03-31 16:51:03 -07:00
commit 7094badf94

View File

@ -71,7 +71,7 @@ function test-build-release() {
function verify-prereqs() { function verify-prereqs() {
if ! which gcloud >/dev/null; then if ! which gcloud >/dev/null; then
local resp local resp
if [[ "${KUBE_PROMPT_FOR_UPDATE" == "y" ]]; then if [[ "${KUBE_PROMPT_FOR_UPDATE}" == "y" ]]; then
echo "Can't find gcloud in PATH. Do you wish to install the Google Cloud SDK? [Y/n]" echo "Can't find gcloud in PATH. Do you wish to install the Google Cloud SDK? [Y/n]"
read resp read resp
else else
@ -85,7 +85,7 @@ function verify-prereqs() {
echo "SDK can be downloaded from https://cloud.google.com/sdk/." echo "SDK can be downloaded from https://cloud.google.com/sdk/."
exit 1 exit 1
fi fi
fi fi
# update and install components as needed # update and install components as needed
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
gcloud_prompt="-q" gcloud_prompt="-q"