From f2fc6d1af4d6abf8a4dcd37fd74a9a15c2273b9f Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 3 Mar 2024 14:39:27 -0800 Subject: [PATCH] Explicitly don't fail on error in library calls (required for conditonals) --- lib.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib.sh b/lib.sh index d371477..6ac2f22 100755 --- a/lib.sh +++ b/lib.sh @@ -1,5 +1,11 @@ #!/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 + ############################################################################### # Execute the Debian install script. # Arguments: