From 8ff89d653ea6271fa31d5743618b77587c3ba510 Mon Sep 17 00:00:00 2001 From: f-galland Date: Wed, 20 Nov 2024 07:15:17 -0300 Subject: [PATCH] Fix conditional bracketing for sh shell --- .../packages/src/common/scripts/install-demo-certificates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/packages/src/common/scripts/install-demo-certificates.sh b/distribution/packages/src/common/scripts/install-demo-certificates.sh index c80a5a3d6c298..6329a8a8befc9 100644 --- a/distribution/packages/src/common/scripts/install-demo-certificates.sh +++ b/distribution/packages/src/common/scripts/install-demo-certificates.sh @@ -16,7 +16,7 @@ mkdir -p "$TMP_DIR" # If demo certificates are explicitly solicited # (ie. for dockerized cluster test environments) # then, use hardcoded certs. -if [[$USE_DEMO_CERTS == "true" ]] +if [ ${USE_DEMO_CERTS:-false} = "true" ] then cat <<'ADMIN_KEY' > $TMP_DIR/admin-key.pem -----BEGIN PRIVATE KEY-----