init.sh: make git name/email error more useful

instruct the user what to do in these conditions

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-26 23:02:04 +01:00
parent 9cebda333d
commit f3882b9bf2
+4 -2
View File
@@ -198,8 +198,10 @@ xbmk_git_init()
x_ git tag -a "$version" -m "$projectname $version" 1>/dev/null \
2>/dev/null
x_ git config --global user.name
x_ git config --global user.email
for gitarg in "--global user.name" "--global user.email"; do
gitcmd="git config $gitarg"; $gitcmd || $err \
"Please run this first: $gitcmd \"your ${gitcmd##*.}\""
done
}
xbmk_create_tmpdir()