diff options
| author | Jack Nagel | 2012-09-11 14:41:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-09-11 14:41:01 -0500 |
| commit | 4aa03d24beea2ffa459522b0185a14e987e35cca (patch) | |
| tree | f3b0cfbbb56e86c4526001fbbbe0926c4b47495f /Library/Homebrew/cmd/cleanup.rb | |
| parent | 2957b286a82cc0612191776c83c83433538afedc (diff) | |
| download | homebrew-4aa03d24beea2ffa459522b0185a14e987e35cca.tar.bz2 | |
cleanup: skip rm_DS_Store during a dry run
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/cleanup.rb')
| -rw-r--r-- | Library/Homebrew/cmd/cleanup.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 7ba589876..962567485 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -17,8 +17,10 @@ module Homebrew extend self end clean_cache # seems like a good time to do some additional cleanup - Homebrew.prune unless ARGV.dry_run? - rm_DS_Store + unless ARGV.dry_run? + Homebrew.prune + rm_DS_Store + end else ARGV.formulae.each do |f| cleanup_formula f |
