diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-02 07:24:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 12:18:22 +0100 |
commit | 4c9c8dd7fa285783a4a04a0d137d43073515e83b (patch) | |
tree | 070af88569c2f2f88902989bd506de68f9f998f9 /include/lib.sh | |
parent | 73bd02e304b5314f4bbe5ff82a9295a99d98c70b (diff) |
move x_() to lib.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r-- | include/lib.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh index 853ad654..f5007c7d 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -131,6 +131,11 @@ setvars() printf "%s\n" "${_setvars% }" } +x_() +{ + [ $# -lt 1 ] || "$@" || $err "Unhandled error for: $(echo "$@")"; : +} + err_() { printf "ERROR %s: %s\n" "$0" "$1" 1>&2 |