Skip to content

Commit

Permalink
Merge pull request #119 from Clever/remove-arch
Browse files Browse the repository at this point in the history
remove arch var from sfncli.ml
  • Loading branch information
ChrisScotMartin authored Nov 11, 2024
2 parents c8e003b + 3331f1a commit 72c6052
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions make/sfncli.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is the default sfncli Makefile.
# Please do not alter this file directly.
SFNCLI_MK_VERSION := 0.1.4
SFNCLI_MK_VERSION := 0.1.5
SHELL := /bin/bash
SYSTEM := $(shell uname -a | cut -d" " -f1 | tr '[:upper:]' '[:lower:]')
SFNCLI_INSTALLED := $(shell [[ -e "bin/sfncli" ]] && bin/sfncli --version)
Expand All @@ -11,7 +11,6 @@ SFNCLI_LATEST = $(shell \
https://api.github.com/repos/Clever/sfncli/releases/latest | \
grep tag_name | \
cut -d\" -f4)
ARCH = $(shell go env GOARCH)

.PHONY: bin/sfncli sfncli-update-makefile ensure-sfncli-version-set ensure-curl-installed

Expand All @@ -36,7 +35,7 @@ bin/sfncli: ensure-sfncli-version-set ensure-curl-installed
} \
else \
echo "Updating sfncli..."; \
curl --retry 5 --fail --max-time 30 -o bin/sfncli -sL https://github.com/Clever/sfncli/releases/download/$(SFNCLI_VERSION)/sfncli-$(SFNCLI_VERSION)-$(SYSTEM)-$(ARCH) && \
curl --retry 5 --fail --max-time 30 -o bin/sfncli -sL https://github.com/Clever/sfncli/releases/download/$(SFNCLI_VERSION)/sfncli-$(SFNCLI_VERSION)-$(SYSTEM)-amd64 && \
chmod +x bin/sfncli && \
echo "Successfully updated sfncli to $(SFNCLI_VERSION)" || \
{ [[ -z "$(SFNCLI_INSTALLED)" ]] && \
Expand Down

0 comments on commit 72c6052

Please sign in to comment.