init.sh: Silence the output of git config --global

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-04 16:50:50 +01:00
parent 5e3aaa1eb8
commit 35265731c5
+2 -2
View File
@@ -148,8 +148,8 @@ xbmk_set_version()
xbmk_git_init()
{
for gitarg in "--global user.name" "--global user.email"; do
gitcmd="git config $gitarg"; $gitcmd || err \
"Please run this first: $gitcmd \"your ${gitcmd##*.}\""
gitcmd="git config $gitarg"; $gitcmd 1>/dev/null 2>/dev/null \
|| err "Run this first: $gitcmd \"your ${gitcmd##*.}\""
done
[ -L ".git" ] && return 1