diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 6a83d3e78b..0f8a6b29b7 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -23,8 +23,9 @@ module Homebrew extend self # Don't complain about directories from DIY installs end end - clean_cache - # seems like a good time to do some additional cleanup + + cleanup_cache + unless ARGV.dry_run? Homebrew.prune rm_DS_Store @@ -58,7 +59,7 @@ module Homebrew extend self end end - def clean_cache + def cleanup_cache return unless HOMEBREW_CACHE.directory? HOMEBREW_CACHE.children.each do |pn| next unless pn.file?