From 1223bfaeefc2d49a1f522456befba11bc2a3e865 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 4 Oct 2023 10:00:12 +0100 Subject: check_git: call fail() first (fallback to err) Signed-off-by: Leah Rowe --- include/err.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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() -- cgit v1.2.1