From e4d35b291cef490db5031724f96524268f75ab3c Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 3 Mar 2024 14:37:40 -0800 Subject: [PATCH] Explicitly don't fail on error in library calls (required for conditionals). --- lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib.sh b/lib.sh index 2bf4a73..6ac2f22 100755 --- a/lib.sh +++ b/lib.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Don't fail on error. We use the exit status as a conditional. +# +# This is the default behavior but can be overriden by the caller in the +# SHELLOPTS env var. set +e ###############################################################################