Commit 3f792bbb authored by zeke's avatar zeke

then...

parent 3c8c87b0
...@@ -24,7 +24,7 @@ cd $BUILD_DIR ...@@ -24,7 +24,7 @@ cd $BUILD_DIR
# Is a node version present in package.json? # Is a node version present in package.json?
DESIRED_VERSION=$(cat $BUILD_DIR/package.json | node $LP_DIR/vendor/json engines.node 2>/dev/null) DESIRED_VERSION=$(cat $BUILD_DIR/package.json | node $LP_DIR/vendor/json engines.node 2>/dev/null)
echo "DESIRED_VERSION: $DESIRED_VERSION" echo "DESIRED_VERSION: $DESIRED_VERSION"
if [ "$DESIRED_VERSION" != "" ] if [ "$DESIRED_VERSION" != "" ]; then
SATISFIED_VERSION=$(node $LP_DIR/vendor/semver/bin/semver $DEFAULT_VERSION -r $DESIRED_VERSION) SATISFIED_VERSION=$(node $LP_DIR/vendor/semver/bin/semver $DEFAULT_VERSION -r $DESIRED_VERSION)
echo "SATISFIED_VERSION: $SATISFIED_VERSION" echo "SATISFIED_VERSION: $SATISFIED_VERSION"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment