From 2a48740ebdaaf7b41d17f9194295a00f64dd9206 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Fri, 13 Mar 2026 00:43:53 +0100 Subject: [PATCH] fix: ensure SCRIPT_DIR assignment is not affected by unset variables --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 6963a8c6..c71b3f29 100644 --- a/setup.sh +++ b/setup.sh @@ -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)