Skip to content

Commit

Permalink
Fix broken pipe errors
Browse files Browse the repository at this point in the history
Node isn't really good at pipes.
  • Loading branch information
laverdet committed Mar 9, 2011
1 parent 2c887f7 commit 1b31427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/node-fibers
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ -e `dirname "$0"`/../src/fibers.node ]]; then
FIBERS_ROOT=`dirname "$0"`/../src
else
# in npm
FIBERS_PATH=`echo 'require.resolve("fibers")' | $NODE | head -n1 | egrep -o '/[^'\'']+'`
FIBERS_PATH=`echo 'require.resolve("fibers")' | $NODE 2>/dev/null | head -n1 | egrep -o '/[^'\'']+'`
FIBERS_ROOT=`dirname "$FIBERS_PATH"`/src
if [[ ! -e "$FIBERS_ROOT/fibers.node" ]]; then
echo "Could not find the coroutine shim!" 1>&2
Expand Down

0 comments on commit 1b31427

Please sign in to comment.