Skip to content

Commit

Permalink
clean up etcd download
Browse files Browse the repository at this point in the history
  • Loading branch information
edude03 committed Dec 17, 2024
1 parent f2384d6 commit c72e177
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
}

0 comments on commit c72e177

Please sign in to comment.