aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-12-07 21:19:18 +0000
committerDominyk Tiller2015-12-18 23:32:56 +0000
commite00216e4e5be5a0e53da1856d19df586baeb3363 (patch)
tree806a60e912600380d28664e8a37280e81e71bbb8 /Library
parentb331e03c39f247beeee8c6083745d48b35b138f4 (diff)
downloadbrew-e00216e4e5be5a0e53da1856d19df586baeb3363.tar.bz2
cmd/cleanup: cleanup java_cache
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index c8b158dd1..3439fd99a 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -62,6 +62,10 @@ module Homebrew
cleanup_path(path) { path.unlink }
next
end
+ if path.basename.to_s == "java_cache" && path.directory?
+ cleanup_path(path) { FileUtils.rm_rf path }
+ next
+ end
if prune?(path)
if path.file?
cleanup_path(path) { path.unlink }