.gitcheck: reduce indentation level for loop

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-18 09:42:06 +01:00
parent ecd7f1d11e
commit 0f3c3ca600
1 changed files with 10 additions and 9 deletions

View File

@ -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()