summaryrefslogtreecommitdiff
path: root/.gitcheck
diff options
context:
space:
mode:
Diffstat (limited to '.gitcheck')
-rwxr-xr-x.gitcheck19
1 files changed, 10 insertions, 9 deletions
diff --git a/.gitcheck b/.gitcheck
index 451c516d..a13eb0ae 100755
--- a/.gitcheck
+++ b/.gitcheck
@@ -22,16 +22,17 @@ 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
+ if [ ! -d coreboot ]; then
+ return
fi
+ for x in coreboot/*; do
+ if [ ! -d "${x}" ]; then
+ continue
+ fi
+ cd "${x}"
+ set_git_credentials
+ cd -
+ done
}
set_git_credentials()