Don't to_s the cmd parameter in Homebrew.system

This commit is contained in:
Jack Nagel 2014-09-20 13:53:09 -05:00
parent 058f557f6a
commit 6ad82e65da

View File

@ -105,7 +105,7 @@ module Homebrew
pid = fork do
yield if block_given?
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
end
Process.wait(pid)