aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-install.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-23 06:06:55 -0600
committerCraig Jennings <c@cjennings.net>2026-02-23 06:06:55 -0600
commit499b3da410f92d58fed05e1a0cb68c3a20421b69 (patch)
tree00cc8eccd698785d53fe4541b334f3aa71651d5b /scripts/test-install.sh
parentb37f0b357bb2ad7da0d2de311540af5553de96cd (diff)
downloadarchangel-499b3da410f92d58fed05e1a0cb68c3a20421b69.tar.gz
archangel-499b3da410f92d58fed05e1a0cb68c3a20421b69.zip
chore: add set -euo pipefail to scripts for safety
Enable undefined variable checking (set -u) and pipefail across standalone scripts. Guard SUDO_USER references with ${SUDO_USER:-} for set -u compatibility.
Diffstat (limited to 'scripts/test-install.sh')
-rwxr-xr-xscripts/test-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test-install.sh b/scripts/test-install.sh
index 4f9f0d8..0314bf2 100755
--- a/scripts/test-install.sh
+++ b/scripts/test-install.sh
@@ -9,7 +9,7 @@
# ./test-install.sh single-disk # Run specific config
# ./test-install.sh --list # List available configs
-set -e
+set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export PROJECT_DIR="$(dirname "$SCRIPT_DIR")"