move x_() to lib.sh

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-05-02 07:24:11 +01:00
parent a30fd38ae4
commit 6348e8a93e
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