make gitcheck verify coreboot subdir
parent
1246c3adb9
commit
b2c71747cd
11
.gitcheck
11
.gitcheck
|
@ -3,8 +3,11 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-only
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
Set_placeholder(){
|
Set_placeholder(){
|
||||||
|
# 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.name || git config user.name 'lbmkplaceholder'
|
||||||
git config user.email || git config user.email 'placeholder@lbmkplaceholder.com'
|
git config user.email || git config user.email 'placeholder@lbmkplaceholder.com'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
Clean(){
|
Clean(){
|
||||||
|
@ -21,9 +24,13 @@ Run(){
|
||||||
if [ "${1}" = "clean" ]; then
|
if [ "${1}" = "clean" ]; then
|
||||||
Clean
|
Clean
|
||||||
else
|
else
|
||||||
# Check if username and or email is set.
|
|
||||||
if ! git config user.name || git config user.email ; then
|
|
||||||
Set_placeholder
|
Set_placeholder
|
||||||
|
|
||||||
|
# Check coreboot as well to prevent errors during building
|
||||||
|
if [ -d coreboot ]; then
|
||||||
|
cd coreboot
|
||||||
|
Set_placeholder
|
||||||
|
cd -
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue