From 1c22f03850dcec2294308afecc99109cc2f2fc2f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 11 Sep 2012 14:41:01 -0500 Subject: cleanup: skip rm_DS_Store during a dry run Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/cleanup.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd') 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 -- cgit v1.2.3