aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2013-04-14 09:35:16 -0700
committerAdam Vandenberg2013-04-14 09:35:16 -0700
commit26dfa2ccbc712b25fe6b296bc6ed2ef18aa40c62 (patch)
tree936b8a0955dc1b533c87053c736c222fcd4d9882 /Library/Homebrew/cmd
parentf78116c72b15feb940a638b0bf1e957de581adf7 (diff)
downloadhomebrew-26dfa2ccbc712b25fe6b296bc6ed2ef18aa40c62.tar.bz2
Only prune taps if taps exist.
Closes #19192.
Diffstat (limited to 'Library/Homebrew/cmd')
-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|