diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-04 09:14:09 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-04 09:14:09 +0100 |
commit | 59c94664e3e3382375e79ee478fc68d3802d794a (patch) | |
tree | 460966ac065cf28320b64da773e1ef58380b9f11 | |
parent | 91bb6cbede0405f764c3f2a686fbba5c7aa9f2fb (diff) |
lib.sh: Make x_ err if first arg is empty
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/lib.sh | 1 |
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 "$@")"; : } |