fix string comparison

This commit is contained in:
Thomas Roehl 2022-05-25 15:48:55 +02:00
parent ad5dbd85ea
commit 4ed07cad77

View File

@ -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 \