summaryrefslogtreecommitdiff
path: root/.gitcheck
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-18 09:42:06 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-18 09:42:06 +0100
commit0f3c3ca60001ff9536d8c4746d47900cd36dd16e (patch)
treeea608ac4c9268bc9609e9d0e76c4322f3ab592c9 /.gitcheck
parentecd7f1d11ee6a6b061e49d1402ce6056cca93cb1 (diff)
.gitcheck: reduce indentation level for loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
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()