aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-09-09 22:08:18 +0200
committerEgor Tensin <egor@tensin.name>2025-09-09 22:08:18 +0200
commit40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c (patch)
tree50fb08df787c559d5b005f1390b20dcb8ed1ab55 /Makefile
parentadd more things to .gitignore (diff)
downloadjekyll-theme-40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c.tar.gz
jekyll-theme-40d663a7c4e44bc30eebf2521bd8f8d78dda3a1c.zip
Makefile: print maintenance commit hash
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 109d908..fc79eba 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,13 @@ maintenance: ruby
@git_status="$$( git status --porcelain=v1 )" && \
if [ -z "$$git_status" ]; then \
- true ; \
+ true; \
elif [ "$$git_status" = ' M Gemfile.lock' ]; then \
git commit -am 'bump dependencies' && \
- git push -q ; \
+ git push -q && \
+ git rev-parse HEAD; \
else \
- echo ; \
+ echo; \
echo '-----------------------------------------------------------------'; \
echo 'Error: unrecognized modifications in the repository:'; \
echo "$$git_status"; \