From 2e134437e223ac4fb89621a3d6fe60f446a424a3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 15 May 2013 12:45:40 -0500 Subject: cleanup: enable prune during dry-run mode Closes #19826. --- Library/Homebrew/cmd/cleanup.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 5fb109bee..06003f41a 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -11,11 +11,9 @@ module Homebrew extend self if ARGV.named.empty? cleanup_cellar cleanup_cache + Homebrew.prune - unless ARGV.dry_run? - Homebrew.prune - rm_DS_Store - end + rm_DS_Store unless ARGV.dry_run? else ARGV.formulae.each { |f| cleanup_formula(f) } end -- cgit v1.2.3