Commit b5913ab4 authored by OHTAKE Tomohiro's avatar OHTAKE Tomohiro Committed by Lukasz Zajaczkowski

Make shell script compatible with older bash

parent 730b7ef0
......@@ -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}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment