test-bot: use ruby method instead of shellout to remove files

This commit is contained in:
Xu Cheng 2015-09-18 19:29:48 +08:00
parent 896ba576cc
commit a6c5fca3a9

View File

@ -967,7 +967,7 @@ module Homebrew
end
end
safe_system "rm -rf #{HOMEBREW_CACHE}/*" if ARGV.include? "--clean-cache"
HOMEBREW_CACHE.children.each(&:rmtree) if ARGV.include? "--clean-cache"
Homebrew.failed = any_errors
end