Fix check-vendor logic in Makefile
authorCameron Moore <moorereason@gmail.com>
Wed, 19 Apr 2017 18:41:52 +0000 (13:41 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 22 Apr 2017 20:34:12 +0000 (22:34 +0200)
Makefile

index ed2092b5396b69902e8e6e34b2c40941c1e3d6bf..64e27ba40e305b2693a3a2f95b09474aa5c5cb1c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ test-cover-html: ## Generate test coverage report
        go tool cover -html=coverage-all.out
 
 check-vendor: ## Verify that vendored packages match git HEAD
-       @git diff-index --quiet HEAD || echo "check-vendor target failed: vendored packages out of sync" && echo && git diff vendor/ && exit 1
+       @git diff-index --quiet HEAD vendor/ || (echo "check-vendor target failed: vendored packages out of sync" && echo && git diff vendor/ && exit 1)
 
 help:
        @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'