Skip to content

Commit

Permalink
Makes the release grab the actual latest version (istio#15449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Pesce authored and istio-testing committed Jul 11, 2019
1 parent f15608a commit 2f4f7d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions release/downloadIstioCandidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ else
fi

if [ "x${ISTIO_VERSION}" = "x" ] ; then
ISTIO_VERSION=$(curl -L -s https://api.github.com/repos/istio/istio/releases/latest | \
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/")
ISTIO_VERSION=$(curl -L -s https://api.github.com/repos/istio/istio/releases | \
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/" | \
sort -t"." -k 1,1 -k 2,2 -k 3,3 -k 4,4 | tail -n 1)
fi

if [ "x${ISTIO_VERSION}" = "x" ] ; then
Expand Down Expand Up @@ -51,4 +52,4 @@ printf "\n"
printf "Begin the Istio pre-installation verification check by running:\n"
printf "\t istioctl verify-install \n"
printf "\n"
printf "Need more information? Visit https://istio.io/docs/setup/kubernetes/install/ \n"
printf "Need more information? Visit https://istio.io/docs/setup/kubernetes/install/ \n"

0 comments on commit 2f4f7d3

Please sign in to comment.