fix: harden installer symlink logic and interactive sourcing (#1)

This commit is contained in:
Dieter Schlüter 2026-06-28 03:49:13 +02:00 committed by Dieter Schlüter
commit 863c441ca6
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
# Only enforce strict mode when sourced non-interactively, so sourcing this
# file in an interactive shell doesn't clobber the user's session settings.
[[ $- == *i* ]] || set -euo pipefail
repo_root() {
local script_dir