aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-05-15 12:45:40 -0500
committerJack Nagel2013-05-15 12:57:02 -0500
commit2e134437e223ac4fb89621a3d6fe60f446a424a3 (patch)
treee3bd104c148cbb41e9c4648c0b5c615cbd38521b /Library/Homebrew
parente237dd274cce6764816b682c79b85c5f5757d696 (diff)
downloadhomebrew-2e134437e223ac4fb89621a3d6fe60f446a424a3.tar.bz2
cleanup: enable prune during dry-run mode
Closes #19826.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb6
1 files 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