diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:51:56 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:51:56 +0100 |
commit | ea081adc4ca6ac9c8ce2c9f87b6c991f0ad3d2d5 (patch) | |
tree | 42d34fc2f2b03dc4bf3529e0eb2940944954b403 | |
parent | 3292bded692a0f004e8d7bedb246ba87557649e2 (diff) |
init.sh: tidy up the git name/email check
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/init.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/init.sh b/include/init.sh index eb20830b..abf812dc 100644 --- a/include/init.sh +++ b/include/init.sh @@ -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" |