Don't to_s the cmd parameter in Homebrew.system
This commit is contained in:
parent
058f557f6a
commit
6ad82e65da
@ -105,7 +105,7 @@ module Homebrew
|
|||||||
pid = fork do
|
pid = fork do
|
||||||
yield if block_given?
|
yield if block_given?
|
||||||
args.collect!{|arg| arg.to_s}
|
args.collect!{|arg| arg.to_s}
|
||||||
exec(cmd.to_s, *args) rescue nil
|
exec(cmd, *args) rescue nil
|
||||||
exit! 1 # never gets here unless exec failed
|
exit! 1 # never gets here unless exec failed
|
||||||
end
|
end
|
||||||
Process.wait(pid)
|
Process.wait(pid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user