aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-04-14 09:35:16 -0700
committerAdam Vandenberg2013-04-14 09:35:16 -0700
commit4daf0de435d1b5ed07db5165663e4eb60af648e2 (patch)
tree288ab1ca235e0b5406d29d7ac22c150a7ed154c1 /Library/Homebrew/cmd/tap.rb
parentadbd8cee6dec6e92495c21094df30741687b16c9 (diff)
downloadbrew-4daf0de435d1b5ed07db5165663e4eb60af648e2.tar.bz2
Only prune taps if taps exist.
Closes Homebrew/homebrew#19192.
Diffstat (limited to 'Library/Homebrew/cmd/tap.rb')
-rw-r--r--Library/Homebrew/cmd/tap.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index 52e03ca17..23bef96d2 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -88,6 +88,8 @@ module Homebrew extend self
end
puts "Pruned #{count} dead formula"
+ return unless HOMEBREW_REPOSITORY.join("Library/Taps").exist?
+
count = 0
# check symlinks are all set in each tap
HOMEBREW_REPOSITORY.join("Library/Taps").children.each do |tap|