Skip to content

Commit

Permalink
Updated code (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
asa1997 authored May 22, 2024
1 parent eac17e9 commit d1c0017
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/tmpl/get.besman.io.tmpl
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ then
fi

echo "Checking version number"
releases=$(curl -s --silent "https://api.github.com/repos/$BESMAN_NAMESPACE/BESMAN/releases" | jq -r '.[].tag_name')

if ! echo "$releases" | grep -q "^$BESMAN_VERSION$"; then
echo "Version $BESMAN_VERSION is not a valid release in repository $repo."
release=$(curl -s --insecure --silent "https://api.github.com/repos/$BESMAN_NAMESPACE/BeSman/releases" | jq -r '.[].tag_name' | grep "^$BESMAN_VERSION$")
if [[ -z $release ]]
then
echo "Version $release is not a valid version of $BESMAN_NAMESPACE/BeSman"
exit 1
fi

Expand Down Expand Up @@ -304,7 +304,7 @@ echo "Download script archive..."

# once move to besman namespace needs to update besman-latest.zip
#curl -sL --location --progress-bar "${BESMAN_SERVICE}/${BESMAN_NAMESPACE}/BESman/dist/dist/besman-latest.zip" > "$besman_zip_file"
curl -sL --location --progress-bar "${BESMAN_SERVICE}/${BESMAN_NAMESPACE}/BeSman/dist/dist/besman-latest.zip" > "$besman_zip_file"
curl -sL --location --progress-bar "${BESMAN_SERVICE}/${BESMAN_NAMESPACE}/BeSman/dist/dist/besman-$BESMAN_VERSION.zip" > "$besman_zip_file"
#cp "/vagrant/ProEnv/besman-latest.zip" "$besman_zip_file"


Expand Down

0 comments on commit d1c0017

Please sign in to comment.