diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-05-18 09:44:11 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-05-18 09:44:11 +0100 | 
| commit | 82c4d7b280f9f38c7e46afc4bfa26365d0083e21 (patch) | |
| tree | 7ca2e93169d6ca511c5f643f26b9bcdc98ecc486 | |
| parent | 0f3c3ca60001ff9536d8c4746d47900cd36dd16e (diff) | |
.gitcheck clean: clean coreboot directories too
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | .gitcheck | 17 | 
1 files changed, 17 insertions, 0 deletions
| @@ -48,6 +48,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  	fi | 
