diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-05 05:20:47 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 12:18:23 +0100 |
commit | 40dc64e25e27c9e75d290bb9f982a6949f92f093 (patch) | |
tree | f67bb124758bd041500496c4d52e61c59fa70b1a | |
parent | 53830022025a8a99b274ac1682822b51ee3e2222 (diff) |
lib.sh: set -u -e in err()
Some parts of lbmk set +u +e, to be reset later on
under normal conditions upon exit. We must ensure
such level of integrity in err() as well.
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/lib.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh index 71183874..43b1a318 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -176,6 +176,8 @@ x_() err() { + set -u -e + xbmk_err_val=0 real_err="" && [ -n "${xbmk_err+x}" ] && real_err="$xbmk_err" |