summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshmalebx9 <thonkpeasant@protonmail.com>2022-11-20 19:42:31 -0700
committershmalebx9 <thonkpeasant@protonmail.com>2022-11-20 19:42:31 -0700
commitb2c71747cd883caf84b1e09667d902186a3138f7 (patch)
treeb646d119d711633bffa703e57bd4370ea461bec8
parent1246c3adb98d245302d9fa574d3eadcb83144a82 (diff)
make gitcheck verify coreboot subdir
-rwxr-xr-x.gitcheck15
1 files changed, 11 insertions, 4 deletions
diff --git a/.gitcheck b/.gitcheck
index 47b0b548..4593f3a5 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -3,8 +3,11 @@
# SPDX-License-Identifier: GPL-3.0-only
Set_placeholder(){
- git config user.name || git config user.name 'lbmkplaceholder'
- git config user.email || git config user.email 'placeholder@lbmkplaceholder.com'
+ # Check if username and or email is set.
+ if ! git config user.name || git config user.email ; then
+ git config user.name || git config user.name 'lbmkplaceholder'
+ git config user.email || git config user.email 'placeholder@lbmkplaceholder.com'
+ fi
}
Clean(){
@@ -21,9 +24,13 @@ Run(){
if [ "${1}" = "clean" ]; then
Clean
else
- # Check if username and or email is set.
- if ! git config user.name || git config user.email ; then
+ Set_placeholder
+
+ # Check coreboot as well to prevent errors during building
+ if [ -d coreboot ]; then
+ cd coreboot
Set_placeholder
+ cd -
fi
fi
}