Sfoglia il codice sorgente

Merge pull request #370 from Shopify/fix-go-fmt-step

Fix go fmt makefile target
Evan Huus 10 anni fa
parent
commit
9206b73e33
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -10,7 +10,7 @@ errcheck:
 	errcheck github.com/Shopify/sarama/...
 	errcheck github.com/Shopify/sarama/...
 
 
 fmt:
 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
 install_dependencies: install_errcheck install_go_vet get