refactor: simplify SCRIPT_DIR assignment in setup script

This commit is contained in:
Linus Rath
2026-03-13 00:42:42 +01:00
parent 60a6ede063
commit 8509550812
+1 -7
View File
@@ -44,13 +44,7 @@ DOT="${DIM}·${RESET}"
BULLET="${BLUE}${RESET}" BULLET="${BLUE}${RESET}"
# ── State ─────────────────────────────────────────────────────────────────── # ── State ───────────────────────────────────────────────────────────────────
set +u SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
if [[ -n "${BASH_SOURCE[0]:-}" ]]; then
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
else
SCRIPT_DIR="$(pwd)"
fi
set -u
ENV_FILE="${SCRIPT_DIR}/.env.local" ENV_FILE="${SCRIPT_DIR}/.env.local"
# Config values (defaults) # Config values (defaults)