From edb47b98a827a3c67d13cf7abe449f9908429056 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 10 Sep 2020 09:23:33 -0700 Subject: [PATCH] scripts: don't descend into .git for license header check --- scripts/check_license_headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_license_headers.sh b/scripts/check_license_headers.sh index 7264fa2a3..d271b8dfc 100755 --- a/scripts/check_license_headers.sh +++ b/scripts/check_license_headers.sh @@ -30,7 +30,7 @@ if [ $# != 1 ]; then fi fail=0 -for file in $(find $1 -name '*.go'); do +for file in $(find $1 -name '*.go' -not -path '*/.git/*'); do case $file in $1/tempfork/*) # Skip, tempfork of third-party code