From 8b337b0b3e32e38ef09e9a224ff8cdea7b27df21 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Wed, 10 Jun 2015 12:29:48 -0700 Subject: [PATCH] fix unbound variable bug --- cluster/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 cluster/common.sh diff --git a/cluster/common.sh b/cluster/common.sh old mode 100644 new mode 100755 index ad0b697aaf..ab2e6050bd --- a/cluster/common.sh +++ b/cluster/common.sh @@ -169,7 +169,7 @@ function get-kubeconfig-bearertoken() { fi } -# Sets binary_version variable to the version passed in as an argument, or if argument is +# Sets KUBE_VERSION variable to the version passed in as an argument, or if argument is # latest_stable, latest_release, or latest_ci fetches and sets the correponding version number # # Args: @@ -179,13 +179,13 @@ function get-kubeconfig-bearertoken() { function set_binary_version() { if [[ "${1}" == "latest_stable" ]]; then KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/stable.txt) - echo "Using latest stable version: ${binary_version}" + echo "Using latest stable version: ${KUBE_VERSION}" elif [[ "${1}" == "latest_release" ]]; then KUBE_VERSION=$(gsutil cat gs://kubernetes-release/release/latest.txt) - echo "Using latest release version: ${binary_version}" + echo "Using latest release version: ${KUBE_VERSION}" elif [[ "${1}" == "latest_ci" ]]; then KUBE_VERSION=$(gsutil cat gs://kubernetes-release/ci/latest.txt) - echo "Using latest ci version: ${binary_version}" + echo "Using latest ci version: ${KUBE_VERSION}" else KUBE_VERSION=${1} fi