diff options
author | Egor Tensin <egor@tensin.name> | 2024-07-01 14:17:23 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2024-07-01 14:26:24 +0200 |
commit | 68d9fe240e292d8ca0409f9349136576bdfffabc (patch) | |
tree | 41ef844eb30781789b380cb26d63e6468fb9626f | |
parent | bump dependencies (diff) | |
download | jekyll-theme-68d9fe240e292d8ca0409f9349136576bdfffabc.tar.gz jekyll-theme-68d9fe240e292d8ca0409f9349136576bdfffabc.zip |
Makefile: simplify the maintenance alias
It was copied from a more complicated project initially.
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -17,12 +17,11 @@ deps: ruby .PHONY: maintenance maintenance: ruby bundle update + @git_status="$$( git status --porcelain=v1 )" && \ - file_statuses="$$( echo "$$git_status" | cut -c 1-2 | sort -u )" && \ - file_names="$$( echo "$$git_status" | cut -c 4- | grep -o '[^/]*$$' | sort -u )" && \ if [ -z "$$git_status" ]; then \ true ; \ - elif [ "$$file_statuses $$file_names" = ' M Gemfile.lock' ]; then \ + elif [ "$$git_status" = ' M Gemfile.lock' ]; then \ git commit -am 'bump dependencies' && \ git push -q ; \ else \ |