Skip to content

Commit

Permalink
Merge pull request meshery#4544 from hexxdump/master
Browse files Browse the repository at this point in the history
[mesheryctl] minor changes to installation script
  • Loading branch information
leecalcote authored Nov 3, 2021
2 parents c398f64 + c29dd61 commit 744c635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meshery
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ if ! command_exists unzip ; then
fi

if [ "x${MESHERY_VERSION}" = "x" ] ; then
MESHERY_VERSION=$(curl -L -s https://api.github.com/repos/meshery/meshery/releases | \
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/" | \
grep -v "rc\.[0-9]$"| head -n 1 )
MESHERY_VERSION=$(curl -L -s https://github.com/meshery/meshery/releases/latest | \
grep "/releases/tag/" | head -1 | awk -F '"' '{print $4}' | \
awk -F '/' '{print $NF}' )
fi

if [ "x${MESHERY_VERSION}" = "x" ] ; then
Expand Down

0 comments on commit 744c635

Please sign in to comment.