Skip to content

Commit

Permalink
Merge pull request #402 from apigee/issue400
Browse files Browse the repository at this point in the history
Fix for getting latest version #400
  • Loading branch information
ssvaidyanathan authored Feb 14, 2024
2 parents 71d63e5 + ffe71b6 commit 5ba4f05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions downloadLatest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ fi

# Determine the latest apigeecli version by version number ignoring alpha, beta, and rc versions.
if [ "${APIGEECLI_VERSION}" = "" ] ; then
APIGEECLI_VERSION="$(curl -sL https://github.com/apigee/apigeecli/releases/latest | \
grep -i release | grep -E -i -o 'v[0-9]\.\d+\.[0-9]' | tail -1)"
APIGEECLI_VERSION="${APIGEECLI_VERSION##*/}"
APIGEECLI_VERSION="$(curl -si https://api.github.com/repos/apigee/apigeecli/releases/latest | grep tag_name | sed -E 's/.*"([^"]+)".*/\1/')"
fi

LOCAL_ARCH=$(uname -m)
Expand Down

0 comments on commit 5ba4f05

Please sign in to comment.