Only prune taps if taps exist.

Closes Homebrew/homebrew#19192.
This commit is contained in:
Adam Vandenberg 2013-04-14 09:35:16 -07:00
parent adbd8cee6d
commit 4daf0de435

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|