diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 52e03ca17d..23bef96d28 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|