mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
init.sh: tidy up the git name/email check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-4
@@ -165,10 +165,9 @@ xbmk_set_version()
|
||||
eval "[ ! -f \".$fv\" ] || read -r $fv < \".$fv\" || :"
|
||||
done
|
||||
|
||||
for g in "command -v git" "git config --global user.name" \
|
||||
"git config --global user.email"; do
|
||||
eval "$g 1>/dev/null 2>/dev/null || $err \"Unconfigured: $g\""
|
||||
done
|
||||
x_ command -v git
|
||||
x_ git config --global user.name
|
||||
x_ git config --global user.email
|
||||
|
||||
[ -e ".git" ] || [ -f ".version" ] || printf "unknown\n" > .version \
|
||||
|| $err "Cannot generate unknown .version file"
|
||||
|
||||
Reference in New Issue
Block a user