summaryrefslogtreecommitdiff
path: root/.gitcheck
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2022-11-26 21:22:06 +0000
committerGogs <gogitservice@gmail.com>2022-11-26 21:22:06 +0000
commit59e4f560d68449f2ab9ec8439e36750bc1c20430 (patch)
treed972b8872b9a456671305d8ef2d0b695393a0813 /.gitcheck
parent0ae00e881efa32e1d13ad7bb0e60e195d3d3406a (diff)
parent99652baa969d5312c87a6ea8debe048ffc955567 (diff)
Merge branch 'dev' of shmalebx9/lbmk into master
Diffstat (limited to '.gitcheck')
-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
}