Merge pull request #12295 from Rylan12/update-report-cask-fix

`update-report`: fix unset cask repo variable error
This commit is contained in:
Rylan Polster 2021-10-21 20:22:33 -04:00 committed by GitHub
commit 6de841cd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,9 @@ module Homebrew
updated_taps = []
Tap.each do |tap|
next unless tap.git?
next if tap.core_tap? && ENV["HOMEBREW_INSTALL_FROM_API"].present? && args.preinstall?
if (tap.core_tap? || tap == "homebrew/cask") && ENV["HOMEBREW_INSTALL_FROM_API"].present? && args.preinstall?
next
end
if ENV["HOMEBREW_MIGRATE_LINUXBREW_FORMULAE"].present? && tap.core_tap? &&
Settings.read("linuxbrewmigrated") != "true"