Skip to content

Commit

Permalink
Merge pull request #88 from Clever/retry-latest-check
Browse files Browse the repository at this point in the history
makefile retry check for latest
  • Loading branch information
ghirsch1 authored Mar 25, 2020
2 parents 0ec68cb + c31259c commit b053a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make/sfncli.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This is the default sfncli Makefile.
# Please do not alter this file directly.
SFNCLI_MK_VERSION := 0.1.2
SFNCLI_MK_VERSION := 0.1.3
SHELL := /bin/bash
SYSTEM := $(shell uname -a | cut -d" " -f1 | tr '[:upper:]' '[:lower:]')
SFNCLI_INSTALLED := $(shell [[ -e "bin/sfncli" ]] && bin/sfncli --version)
# AUTH_HEADER is used to help avoid github ratelimiting
AUTH_HEADER = $(shell [[ ! -z "${GITHUB_API_TOKEN}" ]] && echo "Authorization: token $(GITHUB_API_TOKEN)")
SFNCLI_LATEST = $(shell \
curl -f -s --header "$(AUTH_HEADER)" \
curl --retry 5 -f -s --header "$(AUTH_HEADER)" \
https://api.github.com/repos/Clever/sfncli/releases/latest | \
grep tag_name | \
cut -d\" -f4)
Expand Down

0 comments on commit b053a3e

Please sign in to comment.