mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
fix string comparison
This commit is contained in:
parent
ad5dbd85ea
commit
4ed07cad77
2
Makefile
2
Makefile
@ -23,7 +23,7 @@ GOBIN = $(shell which go)
|
|||||||
all: $(APP)
|
all: $(APP)
|
||||||
|
|
||||||
$(APP): $(GOSRC)
|
$(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"; \
|
echo "1.16"; \
|
||||||
cp go.mod.1.16 go.mod; \
|
cp go.mod.1.16 go.mod; \
|
||||||
else \
|
else \
|
||||||
|
Loading…
Reference in New Issue
Block a user