From c72756c693648e2d5c1c54ca1e9782ce54ab011f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 13 Mar 2023 13:31:11 +0300 Subject: [PATCH] added test for uncommited cnages... Signed-off-by: Alex A. Naanou --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f4a1f89..1248825 100644 --- a/Makefile +++ b/Makefile @@ -298,6 +298,8 @@ tag: | tail -n 5 \ | sed 's/^/ /' \ | tac + @[ $$(git status --porcelain=v1 2> /dev/null | grep -v '??' | wc -l) = 0 ] \ + || echo -e "\nWARNING: There are uncommited changes!\n" @echo "Note that this must be done after a commit and a push." @read -p "(press any key to continue or ctrl-c to cancel)" git tag "v$(VERSION)"