.gitcheck: use subshells where appropriate

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-18 09:49:26 +01:00
parent dd8fb524df
commit c51225577b
1 changed files with 4 additions and 2 deletions

View File

@ -29,9 +29,10 @@ set_placeholders()
if [ ! -d "${x}" ]; then if [ ! -d "${x}" ]; then
continue continue
fi fi
(
cd "${x}" cd "${x}"
set_git_credentials set_git_credentials
cd - )
done done
} }
@ -57,9 +58,10 @@ clean()
if [ ! -d "${x}" ]; then if [ ! -d "${x}" ]; then
continue continue
fi fi
(
cd "${x}" cd "${x}"
unset_placeholders unset_placeholders
cd - )
done done
} }