diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:54:43 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-26 22:54:43 +0100 |
commit | 9cebda333d50b369541963342e655bdaa3677e90 (patch) | |
tree | b30e9fb7b9a9815a2653f6d907796b8c7dc35630 | |
parent | ea081adc4ca6ac9c8ce2c9f87b6c991f0ad3d2d5 (diff) |
init.sh: move git name/mail check to xbmk_git_init
the command -v check has been removed, since this function
already calls git immediately, which would accomplish the
same thing since that causes an error if git isn't there.
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/init.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/init.sh b/include/init.sh index abf812dc..6a5bd2fc 100644 --- a/include/init.sh +++ b/include/init.sh @@ -165,10 +165,6 @@ xbmk_set_version() eval "[ ! -f \".$fv\" ] || read -r $fv < \".$fv\" || :" 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" [ -e ".git" ] || [ -f ".versiondate" ] || printf "1716415872\n" > \ @@ -200,7 +196,10 @@ xbmk_git_init() x_ git commit -m "$projectname $version" --date "$cdate" \ --author="xbmk <xbmk@example.com>" 1>/dev/null 2>/dev/null x_ git tag -a "$version" -m "$projectname $version" 1>/dev/null \ - 2>/dev/null; : + 2>/dev/null + + x_ git config --global user.name + x_ git config --global user.email } xbmk_create_tmpdir() |