From b5913ab43e05f01fcf4e473f79af8b38d26b4442 Mon Sep 17 00:00:00 2001 From: OHTAKE Tomohiro Date: Fri, 8 Apr 2016 18:27:08 +0900 Subject: [PATCH] Make shell script compatible with older bash --- cluster/openstack/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/openstack/util.sh b/cluster/openstack/util.sh index cacf86004c5..266ff111493 100644 --- a/cluster/openstack/util.sh +++ b/cluster/openstack/util.sh @@ -91,7 +91,7 @@ function create-stack() { echo "[INFO] Execute commands to create Kubernetes cluster" # It is required for some cloud provider like CityCloud where swift client has different credentials source "${ROOT}/openrc-swift.sh" - if [[ ! -v OS_PROJECT_ID ]]; then + if [[ -z "${OS_PROJECT_ID}" ]]; then SWIFT_PROJECT_ID="${OS_TENANT_ID}" else SWIFT_PROJECT_ID="${OS_PROJECT_ID}"