From 6ad82e65da50b3ebd86dffa3e27e31b0f6dac318 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 20 Sep 2014 13:53:09 -0500 Subject: Don't to_s the cmd parameter in Homebrew.system --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index ede63b5f6..9a95b3c3f 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -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) -- cgit v1.2.3