Permalink
Browse files

Merge pull request #22 from pazustep/zsh

Fix external runtime detection under zsh and other shells.
  • Loading branch information...
2 parents bc2be5a + da30b02 commit dec2b9d82a9b3712399cb59bffaa3fd2e7c87cba @josh josh committed Jun 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/execjs/external_runtime.rb
@@ -123,7 +123,7 @@ def which(command)
result = if ExecJS.windows?
`#{ExecJS.root}/support/which.bat #{name}`
else
- `which #{name} 2>/dev/null`
+ `command -v #{name} 2>/dev/null`
end
if path = result.strip.split("\n").first

0 comments on commit dec2b9d

Please sign in to comment.