fix: ensure SCRIPT_DIR assignment is not affected by unset variables

This commit is contained in:
Linus Rath
2026-03-13 00:43:53 +01:00
parent 8509550812
commit 2a48740ebd
+2
View File
@@ -44,7 +44,9 @@ DOT="${DIM}·${RESET}"
BULLET="${BLUE}${RESET}"
# ── State ───────────────────────────────────────────────────────────────────
set +u
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
set -u
ENV_FILE="${SCRIPT_DIR}/.env.local"
# Config values (defaults)