Permalink
Browse files

don't let semver failures abort the whole buildpack

  • Loading branch information...
1 parent af541b4 commit 85f810199ad41425d61e2e9f32703c7c683d4fe5 @ddollar ddollar committed Jun 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/compile
View
@@ -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
}

0 comments on commit 85f8101

Please sign in to comment.