From a474483bbeb3b50defddc6245065326d1bae0f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Fri, 24 Nov 2017 12:30:52 -0500 Subject: [PATCH] hack two-segment semver to three segments --- entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index e9db328..6980d4f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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