Merge pull request #200 from inverse-inc/fix-empty-make-prod-commit

Prevents 'make prod' from failing on empty git-commits
This commit is contained in:
Francis Lachapelle
2016-02-15 10:27:46 -05:00
+5 -1
View File
@@ -26,7 +26,11 @@ prod:
grunt --stack build
git update-index --no-assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
git add -f $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
git commit -m "(js/css) Update generated files"
@if ! git diff --quiet --exit-code; then \
git commit -m "(js/css) Update generated files"; \
else \
echo "Nothing to commit; skipping git-commit"; \
fi
git update-index --assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
all: