diff --git a/scripts/check_gofmt.sh b/scripts/check_gofmt.sh index 66bc6f90..67d6dd34 100755 --- a/scripts/check_gofmt.sh +++ b/scripts/check_gofmt.sh @@ -4,5 +4,5 @@ # Fail if a .go file hasn't been formatted with gofmt set -euo pipefail -GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/ -test -z $(gofmt -s -d $GO_FILES | tee /dev/stderr) +GO_FILES=$(find . -iname '*.go' -type f) # All the .go files +test -z $(gofmt -s -d "$GO_FILES" | tee /dev/stderr)