summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.gitcheck33
1 files changed, 19 insertions, 14 deletions
diff --git a/.gitcheck b/.gitcheck
index 0bc64fbc..451c516d 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -13,23 +13,28 @@ main()
clean
fi
else
- set_placeholder
-
- # Check coreboot as well to prevent errors during building
- if [ -d coreboot ]; then
- for x in coreboot/*; do
- if [ ! -d "${x}" ]; then
- continue
- fi
- cd "${x}"
- set_placeholder
- cd -
- done
- fi
+ set_placeholders
+ fi
+}
+
+set_placeholders()
+{
+ set_git_credentials
+
+ # Check coreboot as well to prevent errors during building
+ if [ -d coreboot ]; then
+ for x in coreboot/*; do
+ if [ ! -d "${x}" ]; then
+ continue
+ fi
+ cd "${x}"
+ set_git_credentials
+ cd -
+ done
fi
}
-set_placeholder()
+set_git_credentials()
{
# Check if username and or email is set.
if ! git config user.name || git config user.email ; then