summaryrefslogtreecommitdiff
path: root/include/err.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-04 10:00:12 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-04 10:00:12 +0100
commit1223bfaeefc2d49a1f522456befba11bc2a3e865 (patch)
tree6e43ebe8ee3831a29774633e955cb850a07cfb12 /include/err.sh
parent727dc7ff2fdedc646cfc57c3e42d6ccf296ac8c8 (diff)
check_git: call fail() first (fallback to err)
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/err.sh')
-rwxr-xr-xinclude/err.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/err.sh b/include/err.sh
index d949de11..8474e55b 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -21,7 +21,8 @@ check_git()
git_err()
{
printf "You need to set git name/email, like so:\n%s\n\n" "${1}"
- err "Git name/email not configured"
+ fail "Git name/email not configured" || \
+ err "Git name/email not configured"
}
check_project()