diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-18 09:42:06 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-18 09:42:06 +0100 |
commit | 0f3c3ca60001ff9536d8c4746d47900cd36dd16e (patch) | |
tree | ea608ac4c9268bc9609e9d0e76c4322f3ab592c9 | |
parent | ecd7f1d11ee6a6b061e49d1402ce6056cca93cb1 (diff) |
.gitcheck: reduce indentation level for loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-x | .gitcheck | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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() |