summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-04 09:14:09 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-05 12:18:22 +0100
commit44f1723c4f71a9509d79683d26b5a5c2b7b8f6dc (patch)
treecfd3f72dc7177517226e3e531644267e976ecf12 /include
parent07145cc94a715455dd633873374d40efda92645f (diff)
lib.sh: Make x_ err if first arg is empty
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index c5790bf7..abf4de3b 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -169,6 +169,7 @@ find_ex()
x_()
{
+ [ $# -lt 1 ] || [ -n "$1" ] || $err "Empty first arg: x_ $(echo "$@")"
[ $# -lt 1 ] || "$@" || $err "Unhandled error for: $(echo "$@")"; :
}