From fdcf4efeab520bf0f571c2d93a759cff7dcdc865 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 29 Nov 2019 17:16:38 +0800 Subject: [PATCH] gencopyright: ignore generated files --- scripts/gencopyright.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gencopyright.sh b/scripts/gencopyright.sh index a01beab2d0..3fc64e2fcd 100755 --- a/scripts/gencopyright.sh +++ b/scripts/gencopyright.sh @@ -32,7 +32,7 @@ function patch() { for top in $@ do - for f in $(find $top -iname "*.go") + for f in $(find $top ! -name "*zz_generated*.go" -iname "*.go") do patch $f done