aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-05-15 12:45:40 -0500
committerJack Nagel2013-05-15 12:57:02 -0500
commitd3a8cb78031687f21e42fcc11e00637d07950290 (patch)
tree084c0bb6f7e48aad62a78b28070939ee24fc8006 /Library/Homebrew/cmd
parent1197409c36f0f4bc7ba643a3484b877d9ae97eeb (diff)
downloadbrew-d3a8cb78031687f21e42fcc11e00637d07950290.tar.bz2
cleanup: enable prune during dry-run mode
Closes Homebrew/homebrew#19826.
Diffstat (limited to 'Library/Homebrew/cmd')
-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