diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-04-26 23:02:04 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-04-26 23:02:04 +0100 | 
| commit | f3882b9bf2174900d7f8280392a547cb28f1c1b0 (patch) | |
| tree | 6025c9bd877d379a03dd9cf2e159ccf305541397 | |
| parent | 9cebda333d50b369541963342e655bdaa3677e90 (diff) | |
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>
| -rw-r--r-- | include/init.sh | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/include/init.sh b/include/init.sh index 6a5bd2fc..a88bd13f 100644 --- a/include/init.sh +++ b/include/init.sh @@ -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() | 
