move x_() to lib.sh

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-02 07:24:11 +01:00
parent 2ae565ba93
commit 6c4d88f268
2 changed files with 5 additions and 5 deletions

View File

@@ -224,9 +224,4 @@ xbmk_child_exec()
exit $xbmk_rval
}
x_()
{
[ $# -lt 1 ] || "$@" || $err "Unhandled error for: $(echo "$@")"; :
}
xbmk_init "$@"

View File

@@ -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