aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f6c81e0..5cc09d1 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,10 @@ maintenance: ruby
@$(MAKE) browserify
@git_status="$$( git status --porcelain=v1 )" && \
+ allowed=' M Gemfile.lock| M package-lock.json| M assets/js/bundle.js' && \
if [ -z "$$git_status" ]; then \
true; \
- elif [ "$$git_status" = ' M Gemfile.lock' ] \
- || [ "$$git_status" = $$' M Gemfile.lock\n M package-lock.json' ] \
- || [ "$$git_status" = $$' M Gemfile.lock\n M package-lock.json\n M assets/js/bundle.js' ]; then \
+ elif ! echo "$$git_status" | grep -E -q --invert-match --line-regexp "($$allowed)"; then \
git commit -am 'bump dependencies' && \
git push -q; \
else \