Merge pull request #16915 from Homebrew/bump_no_tap

dev-cmd/bump: handle no formula tap case.
This commit is contained in:
Mike McQuaid 2024-03-20 08:27:49 +00:00 committed by GitHub
commit f99c9c7a7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,7 +240,7 @@ module Homebrew
name = formula_or_cask.token
text = "Cask is disabled.\n"
end
unless formula_or_cask.tap.allow_bump?(name)
if (tap = formula_or_cask.tap) && !tap.allow_bump?(name)
skip = true
text = "#{text.split.first} is on autobump list.\n"
end