summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-04 09:10:24 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-04 09:10:24 +0100
commit91bb6cbede0405f764c3f2a686fbba5c7aa9f2fb (patch)
treebd1e06fc2e58dc6e0cf7892a2bb173741c36dddb /include
parentb19c4f8f674b04fdaa0b07b2c43766a76545ed09 (diff)
lib.sh: Make err_ always exit no matter what
Always certainly redundant, since if -u -e isn't set, it'll continue to exit anyway. However, we want to be pedantic about this, since the safety of lbmk relies entirely on this function NOT misbehaving. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 93680cee..c5790bf7 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -174,6 +174,6 @@ x_()
err_()
{
- printf "ERROR %s: %s\n" "$0" "$1" 1>&2
+ [ $# -lt 1 ] || printf "ERROR %s: %s\n" "$0" "$1" 1>&2 || :
exit 1
}