Skip to content

Commit

Permalink
Merge pull request #242 from dolmen-go/Makefile-fix-dapper-install-fo…
Browse files Browse the repository at this point in the history
…r-amd64
  • Loading branch information
jiaqiluo committed Aug 29, 2024
2 parents 5521841 + 362d2f3 commit b20219a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
TARGETS := $(shell ls scripts)

.dapper:
@if [[ `uname -s` = "Darwin" && `uname -m` = "arm64" ]]; then\
echo "Dapper download is not supported on ARM Macs, you need to build it and add it as .dapper in this directory";\
exit 0;\
fi;\
echo Downloading dapper;\
curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp;\
chmod +x .dapper.tmp;\
./.dapper.tmp -v;\
mv .dapper.tmp .dapper;
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-$$(uname -s)-$$(uname -m) > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper

$(TARGETS): .dapper
./.dapper $@
Expand Down

0 comments on commit b20219a

Please sign in to comment.