mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Make shell script compatible with older bash
This commit is contained in:
parent
730b7ef097
commit
b5913ab43e
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user