repair and add cask taps

This commit is contained in:
hyuraku 2021-05-27 21:43:08 +09:00
parent a0799bfbf9
commit bfa9938e3f

View File

@ -684,8 +684,9 @@ module Homebrew
"Homebrew/homebrew-core" => CoreTap.instance.path, "Homebrew/homebrew-core" => CoreTap.instance.path,
} }
if Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask").exist? %w[cask cask-drivers cask-fonts cask-versions].each do |tap|
taps["Homebrew/homebrew-cask"] = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-cask") cask_tap = Tap.fetch "homebrew", tap
taps[cask_tap.full_name] = cask_tap.path if cask_tap.installed?
end end
taps.each do |name, path| taps.each do |name, path|