Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
Version is now determined through Github API instead of Jitpack in in…
Browse files Browse the repository at this point in the history
…stall script
  • Loading branch information
frankscholten committed Jul 21, 2016
1 parent 52b02d7 commit 06e9067
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ fi
VERSION=$(echo $@ | xargs)

if [ -z "$VERSION" ]; then
MAVEN_METADATA=$(curl -s https://jitpack.io/com/github/ContainerSolutions/minimesos/maven-metadata.xml)
VERSION=$(echo "$MAVEN_METADATA" | awk -F '[<>]' '/release/{print $3}')
VERSION=$(curl -s https://api.github.com/repos/containersolutions/minimesos/releases/latest | grep "tag_name" | awk '{ print $2 }' | tr -d '",')
if [ ! "$VERSION" ]; then
echo "Cannot determine latest release of minimesos"
echo "Cannot determine latest release of minimesos. Please check https://github.com/containersolutinos/minimesos/releases"
exit 1
fi
fi
Expand Down

0 comments on commit 06e9067

Please sign in to comment.