summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorCameron Moore <[email protected]>2017-04-19 13:41:52 -0500
committerBjørn Erik Pedersen <[email protected]>2017-04-22 22:34:12 +0200
commit8cd3ea565ae57a8e77d0b0935472944a0643b29d (patch)
tree61c433001905c19be6424f72ff81f3adb89845ca /Makefile
parent793554108763c0984f1a1b1a6ee5744b560d78d0 (diff)
downloadhugo-8cd3ea565ae57a8e77d0b0935472944a0643b29d.tar.gz
hugo-8cd3ea565ae57a8e77d0b0935472944a0643b29d.zip
Fix check-vendor logic in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ed2092b53..64e27ba40 100644
--- 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}'