diff options
| author | Adam Vandenberg | 2014-02-23 22:07:30 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-25 20:24:34 -0800 |
| commit | c189dd6e20a61985d3b07f796132d301bc765a34 (patch) | |
| tree | 94aa189dd7f2484ddb51597b444f37aa659df0d7 /Library/Homebrew | |
| parent | f5cc07dfea3ebc965287ceda828c63f2811fe062 (diff) | |
| download | brew-c189dd6e20a61985d3b07f796132d301bc765a34.tar.bz2 | |
only get counts if needed
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/prune.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/prune.rb b/Library/Homebrew/cmd/prune.rb index 1f4577b0d..0ea11ca73 100644 --- a/Library/Homebrew/cmd/prune.rb +++ b/Library/Homebrew/cmd/prune.rb @@ -38,11 +38,10 @@ module Homebrew extend self repair_taps unless ARGV.dry_run? - n, d = ObserverPathnameExtension.counts - if ObserverPathnameExtension.total.zero? puts "Nothing pruned" if ARGV.verbose? else + n, d = ObserverPathnameExtension.counts print "Pruned #{n} symbolic links " print "and #{d} directories " if d > 0 puts "from #{HOMEBREW_PREFIX}" |
