From bddebc9428c54b912883fcb5a330e5dee36f57b0 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Mon, 29 Feb 2016 12:08:37 -0800 Subject: [PATCH] fix(Makefile): fix gofmt too many args error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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