From 82c4d7b280f9f38c7e46afc4bfa26365d0083e21 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 18 May 2023 09:44:11 +0100 Subject: .gitcheck clean: clean coreboot directories too Signed-off-by: Leah Rowe --- .gitcheck | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitcheck b/.gitcheck index a13eb0ae..f5db1f20 100755 --- a/.gitcheck +++ b/.gitcheck @@ -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 -- cgit v1.2.1