mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
brew-test-bot: only cleanup cache once.
This commit is contained in:
1 parent
10bd5a8da0
commit
7594e18974
1 file changed
+5
-2
@@ -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
|
||||
Reference in new issue
Block a user