Permalink
Browse files

Path with spaces in Windows

  • Loading branch information...
1 parent c4f0e85 commit 64eba840ff222dee78d211a4bb8294c2a42b26d1 @lukefx lukefx committed Aug 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/execjs/external_runtime.rb
@@ -143,7 +143,7 @@ def which(command)
Array(command).each do |name|
name, args = name.split(/\s+/, 2)
result = if ExecJS.windows?
- `#{ExecJS.root}/support/which.bat #{name}`
+ `"#{ExecJS.root}/support/which.bat" #{name}`
else
`command -v #{name} 2>/dev/null`
end

0 comments on commit 64eba84

Please sign in to comment.