From 0b67f42feb95594fb403908d61383dc25d6cd342 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 31 May 2018 11:25:49 +0200 Subject: [PATCH] Makefile: followup on #2585 Fix a typo in `tag` target, double quote are missing here. Without them, the `make tag` command fails like this: ``` if [[ "v3.0.35" == ]]; then \ echo "e5f2df8 on stable-3.0 is already tagged as v3.0.35"; \ exit 1; \ fi /bin/sh: -c: line 0: unexpected argument `]]' to conditional binary operator /bin/sh: -c: line 0: syntax error near `;' /bin/sh: -c: line 0: `if [[ "v3.0.35" == ]]; then echo "e5f2df8 on stable-3.0 is already tagged as v3.0.35"; exit 1; fi' make: *** [tag] Error 2 ``` Signed-off-by: Guillaume Abrioux --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3