mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +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=""
|
version=""; versiondate=""; projectname=""
|
||||||
|
|
||||||
x_() {
|
x_() {
|
||||||
[ $# -lt 1 ] || ${@} || err "non-zero exit status: ${@}"
|
[ $# -lt 1 ] || ${@} || err_exit err ${@}
|
||||||
}
|
}
|
||||||
xx_() {
|
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()
|
check_git()
|
||||||
|
|||||||
Reference in New Issue
Block a user