diff options
| author | Jack Nagel | 2014-07-06 15:03:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-06 15:03:42 -0500 |
| commit | 0deedabbaf5f4a92a3ca4dde009aed8c82eb0498 (patch) | |
| tree | 037c6d03c4d88a55be2205fd2580369b2b45e600 /Library | |
| parent | b4fd54ae925028fd0d7bb198f2dec9b945fcea2a (diff) | |
| download | brew-0deedabbaf5f4a92a3ca4dde009aed8c82eb0498.tar.bz2 | |
nostdout doesn't need to capture output
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 8035a21cd..384313ed1 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -249,12 +249,12 @@ def nostdout yield else begin - require 'stringio' - real_stdout = $stdout - $stdout = StringIO.new + out = $stdout.dup + $stdout.reopen("/dev/null") yield ensure - $stdout = real_stdout + $stdout.reopen(out) + out.close end end end |
