diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 94cc964a91..59e81ad32f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -571,6 +571,7 @@ class Formula $stdout.reopen(out) $stderr.reopen(out) + out.close args.collect!{|arg| arg.to_s} exec(cmd, *args) rescue nil puts "Failed to execute: #{cmd}"