cmd/cleanup: cleanup java_cache

This commit is contained in:
Dominyk Tiller 2015-12-07 21:19:18 +00:00
parent b331e03c39
commit e00216e4e5

View File

@ -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 }