diff --git a/Makefile b/Makefile index 9b05bcde9..587b941d8 100644 --- a/Makefile +++ b/Makefile @@ -578,12 +578,12 @@ etcd: $(ETCD) $(ETCD): $(LOCALBIN) @test -s $(LOCALBIN)/etcd || { \ if [ "$(GOOS)" = "darwin" ]; then \ - curl -sfSLo etcd-temp https://github.com/etcd-io/etcd/releases/download/$(ETCD_VERSION)/etcd-$(ETCD_VERSION)-$(GOOS)-$(GOARCH).zip && \ - unzip -j etcd-temp "*/etcd" "*/etcdctl" -d $(LOCALBIN) && \ - rm etcd-temp; \ + curl -sfSL -o $(LOCALBIN)/etcd-temp https://github.com/etcd-io/etcd/releases/download/$(ETCD_VERSION)/etcd-$(ETCD_VERSION)-$(GOOS)-$(GOARCH).zip && \ + unzip -j $(LOCALBIN)/etcd-temp "*/etcd" "*/etcdctl" -d $(LOCALBIN) && \ + rm $(LOCALBIN)/etcd-temp; \ else \ - curl -sfSLo etcd-temp https://github.com/etcd-io/etcd/releases/download/$(ETCD_VERSION)/etcd-$(ETCD_VERSION)-$(GOOS)-$(GOARCH).tar.gz && \ - tar -xvf etcd-temp -C $(LOCALBIN) --strip-components=1 && \ - rm etcd-temp; \ + curl -sfSL -o $(LOCALBIN)/etcd-temp https://github.com/etcd-io/etcd/releases/download/$(ETCD_VERSION)/etcd-$(ETCD_VERSION)-$(GOOS)-$(GOARCH).tar.gz && \ + tar -xvf $(LOCALBIN)/etcd-temp -C $(LOCALBIN) --strip-components=1 && \ + rm $(LOCALBIN)/etcd-temp; \ fi \ }