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