From 91a35c2f4eb11e2323bca36e828ff00bd98e45c6 Mon Sep 17 00:00:00 2001 From: Carlisia Date: Tue, 14 May 2019 09:57:08 -0700 Subject: [PATCH] Ignore site directory when making Signed-off-by: Carlisia --- hack/update-fmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-fmt.sh b/hack/update-fmt.sh index 94167eb7c..fe6756078 100755 --- a/hack/update-fmt.sh +++ b/hack/update-fmt.sh @@ -33,7 +33,7 @@ if ! command -v goimports > /dev/null; then exit 1 fi -files="$(find . -type f -name '*.go' -not -path './vendor/*' -not -path './pkg/generated/*' -not -name 'zz_generated*')" +files="$(find . -type f -name '*.go' -not -path './vendor/*' -not -path './site/*' -not -path './pkg/generated/*' -not -name 'zz_generated*')" echo "${ACTION} gofmt" for file in ${files}; do output=$(gofmt "${MODE}" -s "${file}")