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,
}
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|