From 398122d46dc355da373d86617a39f254ca6cc0c7 Mon Sep 17 00:00:00 2001 From: Aaron McHale Date: Sun, 8 Mar 2026 14:09:35 +0000 Subject: [PATCH] Turn on set -u to treat unset variables as an error when substituting --- cli.sh | 1 + tests/test-cli.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.sh b/cli.sh index dd81fad..1571935 100755 --- a/cli.sh +++ b/cli.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -u # Simple CLI wrapper that discovers scripts in the commands/ directory diff --git a/tests/test-cli.sh b/tests/test-cli.sh index 2dbe2f0..9e7889c 100755 --- a/tests/test-cli.sh +++ b/tests/test-cli.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -e +set -eu # Cd to the directory of this script cd "${0%/*}"