diff options
| author | Jack Nagel | 2014-09-08 19:42:16 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-08 19:50:13 -0500 |
| commit | f6eedf946487980c740f5e0595fb46a5a2710597 (patch) | |
| tree | f893133bc39dbc14b62460fdb3f25cd94c447016 /Library | |
| parent | fbc5d6c31f71bc8b259b686809c7d976e1e2a084 (diff) | |
| download | brew-f6eedf946487980c740f5e0595fb46a5a2710597.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 |
