From 262ffea56b746dd55ad0cc2fbe71531c366281f8 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 15 Sep 2021 09:28:20 +0200 Subject: [PATCH] Update tag check in release-hook to prevent false positives Signed-off-by: Joachim Wiberg --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0df82e8..e868345 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,7 +37,7 @@ endif # Check if tagged in git # release-hook: - @if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \ + @if [ ! `git tag -l v$(PACKAGE_VERSION) | grep $(PACKAGE_VERSION)` ]; then \ echo; \ printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \ printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \