.gitcheck clean: clean coreboot directories too

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-18 09:44:11 +01:00
parent 0f3c3ca600
commit 82c4d7b280
1 changed files with 17 additions and 0 deletions

View File

@ -47,6 +47,23 @@ set_git_credentials()
}
clean()
{
unset_placeholders
if [ ! -d coreboot ]; then
return
fi
for x in coreboot/*; do
if [ ! -d "${x}" ]; then
continue
fi
cd "${x}"
unset_placeholders
cd -
done
}
unset_placeholders()
{
if [ "$(git config user.name)" = "${git_name}" ]; then
git config --unset user.name