diff --git a/Makefile b/Makefile index 0560b9c67..ee281dcec 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ tag: | sed -E "s/.*[^0-9]([0-9]+)$$/\1/")) $(eval NEXTNUM=$(shell echo $$(($(LASTNUM)+1)))) $(eval NEXTTAG=$(shell echo $(TAG) | sed "s/$(LASTNUM)$$/$(NEXTNUM)/")) - if [[ "$(TAG)" == $(git describe --tags --match 'v*') ]]; then \ + if [[ "$(TAG)" == "$(git describe --tags --match 'v*')" ]]; then \ echo "$(SHORTCOMMIT) on $(BRANCH) is already tagged as $(TAG)"; \ exit 1; \ fi