From 4ed07cad77ebd02e5422f6c67a4bb6a7e8b5afdd Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Wed, 25 May 2022 15:48:55 +0200 Subject: [PATCH] fix string comparison --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6cfd3b3..8a6748a 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ GOBIN = $(shell which go) all: $(APP) $(APP): $(GOSRC) - if [ "$(shell $(GOBIN) version | cut -d' ' -f 3 | cut -d '.' -f1-2)" == "go1.16" ]; then \ + if [ "$(shell $(GOBIN) version | cut -d' ' -f 3 | cut -d '.' -f1-2)" = "go1.16" ]; then \ echo "1.16"; \ cp go.mod.1.16 go.mod; \ else \