summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-04 16:28:22 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-05 12:18:22 +0100
commit1b324cbefb8cd17fbbc26acb3092c8e47844a4b8 (patch)
tree0b10aee6206bb1c4d8c3046fe19bfeee5d18ed06 /include/lib.sh
parenteacd9808b6f5df4312ce5cbedb0d276432e0dfc1 (diff)
lib.sh: Add warning if x_ is called without args
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index e7b5bd3d..fbbb92da 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -169,6 +169,7 @@ find_ex()
x_()
{
+ [ $# -lt 1 ] && printf "WARNING: x_ called without arguments\n" 1>&2
[ $# -lt 1 ] || [ -n "$1" ] || err "Empty first arg: x_ $(echo "$@")"
[ $# -lt 1 ] || "$@" || err "Unhandled error for: $(echo "$@")"; :
}