diff --git a/Makefile b/Makefile index ce2acfef1..a3e377221 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ test-unit: .PHONY: .test-style test-style: lint vet - @if [ $(shell gofmt -e -l -s $(GO_DIRS)) ]; then \ + @if [ $(shell gofmt -e -l -s $(GO_DIRS) | wc -l) ]; then \ echo "gofmt check failed:"; gofmt -e -d -s $(GO_DIRS); exit 1; \ fi