Only prune taps if taps exist.

Closes #19192.
This commit is contained in:
Adam Vandenberg committed 2013-04-14 09:35:16 -07:00
1 parent f78116c72b
commit 26dfa2ccbc
1 file changed
+2
+2
View File
@@ -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|