Skip to content

Commit

Permalink
hide package json reading errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Feb 22, 2012
1 parent 2de9171 commit 1d061d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/compile
Expand Up @@ -73,7 +73,7 @@ function resolve_version() {
}

function package_engine_version() {
version=$(cat $BUILD_DIR/package.json | $bootstrap_node/bin/node $LP_DIR/vendor/json/json engines.$1)
version=$(cat $BUILD_DIR/package.json | $bootstrap_node/bin/node $LP_DIR/vendor/json/json engines.$1 2>/dev/null)
if [ $? == 0 ]; then
echo $version
fi
Expand Down

0 comments on commit 1d061d0

Please sign in to comment.