Skip to content

Commit

Permalink
Merge pull request #2016 from abhisheksatpathy/fix-install-script-mes…
Browse files Browse the repository at this point in the history
…sage

Fix: added filename inplace of meshery.tar.gz in install
  • Loading branch information
leecalcote authored Jan 12, 2025
2 parents ef49c21 + 1e53b2a commit 4618fcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,14 @@ fi

NAME="mesheryctl-${MESHERY_VERSION}"
URL="https://github.com/meshery/meshery/releases/download/${MESHERY_VERSION}/mesheryctl_${MESHERY_VERSION:1}_${OSEXT}_${OSARCHITECTURE}.tar.gz"
FILENAME="mesheryctl_${MESHERY_VERSION:1}_${OSEXT}_${OSARCHITECTURE}.tar.gz"

printf "\nDownloading %s for %s...\n\n" "$NAME" "$OSEXT"
curl -L ${URL} -o ${PWD}/meshery.tar.gz

validFile=`file ${PWD}/meshery.tar.gz | grep 'gzip compressed data'`
if [ -z "$validFile" ] ; then
printf "Unable to download meshery.tar.gz file from ${URL}. Set MESHERY_VERSION environment variable to a different version and re-run. For example: export MESHERY_VERSION=v0.1.6\n"
printf "Unable to download '%s' from ${URL}. Set MESHERY_VERSION environment variable to a different version and re-run. For example: export MESHERY_VERSION=v0.9.0\n" "$FILENAME"
exit;
fi

Expand Down

0 comments on commit 4618fcf

Please sign in to comment.