Permalink
Browse files

Redirect which stderr to null

  • Loading branch information...
josh committed Apr 22, 2011
1 parent 612c95e commit 0aad760a6f732648c255b9cd76e309cae6540735
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/execjs/external_runtime.rb
@@ -117,7 +117,7 @@ def which(command)
result = if ExecJS.windows?
`#{ExecJS.root}/support/which.bat #{name}`
else
- `which #{name} 2>&1`
+ `which #{name} 2>/dev/null`
end
if path = result.strip.split("\n").first

0 comments on commit 0aad760

Please sign in to comment.