lib.sh: Add warning if x_ is called without args
Signed-off-by: Leah Rowe <leah@libreboot.org>25.04_branch
parent
78aa78c82e
commit
90bd3e67c4
|
@ -169,6 +169,7 @@ find_ex()
|
||||||
|
|
||||||
x_()
|
x_()
|
||||||
{
|
{
|
||||||
|
[ $# -lt 1 ] && printf "WARNING: x_ called without arguments\n" 1>&2
|
||||||
[ $# -lt 1 ] || [ -n "$1" ] || err "Empty first arg: x_ $(echo "$@")"
|
[ $# -lt 1 ] || [ -n "$1" ] || err "Empty first arg: x_ $(echo "$@")"
|
||||||
[ $# -lt 1 ] || "$@" || err "Unhandled error for: $(echo "$@")"; :
|
[ $# -lt 1 ] || "$@" || err "Unhandled error for: $(echo "$@")"; :
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue