Skip to content

Commit

Permalink
hack two-segment semver to three segments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Nov 24, 2017
1 parent 43a7c70 commit a474483
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ if [ -e "${METEOR_DIR}" ]; then
# Check Meteor version
echo "Checking Meteor version..."
RELEASE=$(cat .meteor/release | cut -f2 -d'@')

# HACK: if version is x.y, bump it to x.y.0 to work around faulty semver
if [ $(echo $RELEASE | wc -c) -lt 5 ]; then
RELEASE=${RELEASE}.0
fi

set +e # Allow the next command to fail
semver -r '>=1.3.1' $(echo $RELEASE |cut -d'.' -f1-3)
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit a474483

Please sign in to comment.