Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't let semver failures abort the whole buildpack

  • Loading branch information...
commit 85f810199ad41425d61e2e9f32703c7c683d4fe5 1 parent af541b4
@ddollar ddollar authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bin/compile
View
3  bin/compile
@@ -66,7 +66,8 @@ function resolve_version() {
args=""
for version in $available_versions; do args="${args} -v \"${version}\""; done
for version in $requested_version; do args="${args} -r \"${version}\""; done
- eval $bootstrap_node/bin/node $LP_DIR/vendor/node-semver/bin/semver ${args} | tail -n1
+ evaluated_version=$(eval $bootstrap_node/bin/node $LP_DIR/vendor/node-semver/bin/semver ${args} || echo "")
+ echo "$evaluated_version" | tail -n 1
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.