From 83305b882970431ef220537c76e530fec746f52b Mon Sep 17 00:00:00 2001 From: zaragoza444 Date: Mon, 29 Jun 2026 06:30:03 -0700 Subject: [PATCH] fix(deploy): tolerate unset optional vars when sourcing .env Co-authored-by: Cursor --- scripts/deployment/deploy-omnl-bank-production.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deployment/deploy-omnl-bank-production.sh b/scripts/deployment/deploy-omnl-bank-production.sh index 38ac95d..70a1206 100644 --- a/scripts/deployment/deploy-omnl-bank-production.sh +++ b/scripts/deployment/deploy-omnl-bank-production.sh @@ -37,8 +37,10 @@ if [ -f "$ENV_FILE" ]; then chmod 600 "$ENV_FILE" fi set -a + set +u # shellcheck disable=SC1090 source "$ENV_FILE" + set -u set +a fi @@ -46,8 +48,10 @@ if [[ -f "$ENV_FILE" ]] && ! grep -q '^OMNL_SUPER_ADMIN_OFFICE24_KEY=' "$ENV_FIL log "Generating four super-admin API keys..." bash "$REPO_DIR/scripts/deployment/seed-omnl-super-admin-keys.sh" set -a + set +u # shellcheck disable=SC1090 source "$ENV_FILE" + set -u set +a fi