From bac8cce29f2daf638813d4fffc7c51c54207ed15 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 29 Nov 2013 21:05:20 -0600 Subject: [PATCH] Flush stdout before leaving Formula#system --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index dd3d17f08a..672d210567 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -604,6 +604,8 @@ class Formula Process.wait + $stdout.flush + unless $?.success? f.flush Kernel.system "/usr/bin/tail", "-n", "5", logfn unless ARGV.verbose?