From bfa9938e3f1b344c886b5eaca6706204be26b70d Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Thu, 27 May 2021 21:43:08 +0900 Subject: [PATCH] repair and add cask taps --- Library/Homebrew/diagnostic.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 8d10a623f0..c3fe48a698 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -684,8 +684,9 @@ module Homebrew "Homebrew/homebrew-core" => CoreTap.instance.path, } - if Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask").exist? - taps["Homebrew/homebrew-cask"] = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask") + %w[cask cask-drivers cask-fonts cask-versions].each do |tap| + cask_tap = Tap.fetch "homebrew", tap + taps[cask_tap.full_name] = cask_tap.path if cask_tap.installed? end taps.each do |name, path|