cleanup: enable prune during dry-run mode
Closes Homebrew/homebrew#19826.
This commit is contained in:
parent
1197409c36
commit
d3a8cb7803
@ -11,11 +11,9 @@ module Homebrew extend self
|
|||||||
if ARGV.named.empty?
|
if ARGV.named.empty?
|
||||||
cleanup_cellar
|
cleanup_cellar
|
||||||
cleanup_cache
|
cleanup_cache
|
||||||
|
|
||||||
unless ARGV.dry_run?
|
|
||||||
Homebrew.prune
|
Homebrew.prune
|
||||||
rm_DS_Store
|
|
||||||
end
|
rm_DS_Store unless ARGV.dry_run?
|
||||||
else
|
else
|
||||||
ARGV.formulae.each { |f| cleanup_formula(f) }
|
ARGV.formulae.each { |f| cleanup_formula(f) }
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user