Skip to content

Commit

Permalink
Fixed getting the version identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtkanaskie committed Feb 14, 2024
1 parent a53f5db commit f2e3928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions downloadLatest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fi

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

LOCAL_ARCH=$(uname -m)
Expand Down

0 comments on commit f2e3928

Please sign in to comment.