aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2024-07-01 14:17:23 +0200
committerEgor Tensin <egor@tensin.name>2024-07-01 14:26:32 +0200
commitb6bd0cd3e328f8054b13b25f1ac392c435932580 (patch)
treeb6cb76812d6012db238436e0dd849bd67944caf9
parentbump dependencies (diff)
downloadsorting-algorithms-b6bd0cd3e328f8054b13b25f1ac392c435932580.tar.gz
sorting-algorithms-b6bd0cd3e328f8054b13b25f1ac392c435932580.zip
Makefile: simplify the maintenance alias
It was copied from a more complicated project initially.
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 65ec3f3..560c7d9 100644
--- a/Makefile
+++ b/Makefile
@@ -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 \