From 3a7d2c3e72e0fbf097d2691df5e2c3cb19b61861 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 Jul 2024 14:17:23 +0200 Subject: Makefile: simplify the maintenance alias It was copied from a more complicated project initially. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d505b4b..ec491a2 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 \ -- cgit v1.2.3