check_git: call fail() first (fallback to err)

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-04 10:00:12 +01:00
parent 727dc7ff2f
commit 1223bfaeef
+2 -1
View File
@@ -21,7 +21,8 @@ check_git()
git_err() git_err()
{ {
printf "You need to set git name/email, like so:\n%s\n\n" "${1}" 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() check_project()