From e00216e4e5be5a0e53da1856d19df586baeb3363 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 7 Dec 2015 21:19:18 +0000 Subject: cmd/cleanup: cleanup java_cache --- Library/Homebrew/cmd/cleanup.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 } -- cgit v1.2.3