aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorMike McQuaid2014-02-22 17:57:55 +0000
committerMike McQuaid2014-02-22 17:57:55 +0000
commitbf57ddf302be292285c8b5f00d9c305015ad7c16 (patch)
tree891096fe711e74c1b924e5aef35e05d7c7b4b593 /Library/Contributions
parentb33203604efbc4aead76233fe8c7a39e537b7b1b (diff)
downloadbrew-bf57ddf302be292285c8b5f00d9c305015ad7c16.tar.bz2
brew-test-bot: only cleanup cache once.
Diffstat (limited to 'Library/Contributions')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb7
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
'n152' href='#n152'>152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189