diff options
| author | Jack Nagel | 2014-09-08 19:42:16 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-08 19:50:13 -0500 |
| commit | 8ef16ec9660b946d8f1740fa408a788ff4fafb01 (patch) | |
| tree | f9a8d06f96fe59e3de26b8543e4a0fabbf9a6b51 /Library | |
| parent | aba37145acde66bc6728cbe292703e4210ca34a8 (diff) | |
| download | homebrew-8ef16ec9660b946d8f1740fa408a788ff4fafb01.tar.bz2 | |
Avoid early return
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index da6ba1c6e..ea8f98add 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -120,12 +120,13 @@ class Step @status = success ? :passed : :failed puts_result - return unless File.exist?(log) - @output = File.read(log) - if has_output? and (not success or @puts_output_on_success) - puts @output + if File.exist?(log) + @output = File.read(log) + if has_output? and (not success or @puts_output_on_success) + puts @output + end + FileUtils.rm(log) unless ARGV.include? "--keep-logs" end - FileUtils.rm(log) unless ARGV.include? "--keep-logs" end end |
