diff options
| author | Mike McQuaid | 2014-02-22 17:57:55 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-22 17:57:55 +0000 |
| commit | 7594e18974e4def50f693bf60e680e68afca07ca (patch) | |
| tree | 7bd7607344cb55b4fb07f60e997693c551838935 /Library | |
| parent | 10bd5a8da0be05df4d23861ff3d38d7f0b9d89f1 (diff) | |
| download | homebrew-7594e18974e4def50f693bf60e680e68afca07ca.tar.bz2 | |
brew-test-bot: only cleanup cache once.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index e8b20a865..5563a55e5 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -337,8 +337,6 @@ class Test @category = __method__ force_flag = '' if ARGV.include? '--cleanup' - test 'brew cleanup -s' - test "rm -vrf #{HOMEBREW_CACHE}/*" test 'git clean --force -dx' force_flag = '-f' end @@ -527,4 +525,9 @@ if ARGV.include? "--email" end end +if ARGV.include? "--cleanup" + safe_system "brew cleanup -s" + safe_system "rm -vrf #{HOMEBREW_CACHE}/*" +end + exit any_errors ? 0 : 1 |
