From d3e4c4e052e22d8363bcb510c64f2782c63bf42d Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Mon, 29 Feb 2016 18:20:18 -0800 Subject: [PATCH] fix(gofmt): fix test-style target in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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