Browse Source

Fix go fmt makefile target

Evan Huus 10 years ago
parent
commit
0689b77c33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -10,7 +10,7 @@ errcheck:
 	errcheck github.com/Shopify/sarama/...
 
 fmt:
-	@if [[ -n $$(go fmt ./...) ]]; then echo 'Please run go fmt on your code.' && exit 1; fi
+	@if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi
 
 install_dependencies: install_errcheck install_go_vet get