aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/prune.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-23 22:07:30 -0800
committerAdam Vandenberg2014-02-25 20:24:34 -0800
commit0be5f5dd2de73483682eb8d4c38f659303b5ef5d (patch)
treedc14707bbb5651409c9ee952c4170731b4f1fe2d /Library/Homebrew/cmd/prune.rb
parent19971aff70320b93f753256da9ff16d3eb00a6ca (diff)
downloadhomebrew-0be5f5dd2de73483682eb8d4c38f659303b5ef5d.tar.bz2
only get counts if needed
Diffstat (limited to 'Library/Homebrew/cmd/prune.rb')
-rw-r--r--Library/Homebrew/cmd/prune.rb3
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}"