mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
x/xx: slightly more verbose error messages
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+9
-2
@@ -4,10 +4,17 @@
|
||||
version=""; versiondate=""; projectname=""
|
||||
|
||||
x_() {
|
||||
[ $# -lt 1 ] || ${@} || err "non-zero exit status: ${@}"
|
||||
[ $# -lt 1 ] || ${@} || err_exit err ${@}
|
||||
}
|
||||
xx_() {
|
||||
[ $# -lt 1 ] || ${@} || fail "non-zero exit status: ${@}"
|
||||
[ $# -lt 1 ] || ${@} || err_exit fail ${@}
|
||||
}
|
||||
|
||||
err_exit()
|
||||
{
|
||||
_fail="${1}" && shift 1
|
||||
echo "Non-zero exit: $@"
|
||||
$_fail "Unhandled error"
|
||||
}
|
||||
|
||||
check_git()
|
||||
|
||||
Reference in New Issue
Block a user