Skip to content

Commit

Permalink
build: add a warning during release upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thefab committed Jul 10, 2020
1 parent 3fae676 commit f301c9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ GITHUB_URL="https://api.github.com/repos/${ORG}/${REPO}/releases/latest"
echo "Getting latest release on ${GITHUB_URL}..."
DOWNLOAD_URL=$(curl "${CURL_OPTS}" "${GITHUB_URL}" |grep "browser_download_url.:..https.*tar.gz" |cut -d : -f 2,3 | tr -d \" |tr -d ' ')
RELEASE=$(echo "${DOWNLOAD_URL}" |sed 's~.*/\(v[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)/.*$~\1~g')
if test "${RELEASE}" = ""; then
echo "ERROR: can't get the latest release version. Please retry in a few minutes."
exit 1
fi
echo "=> Found release: ${RELEASE}"
echo "=> Found download url: ${DOWNLOAD_URL}"

Expand Down

0 comments on commit f301c9a

Please sign in to comment.