Merge pull request #15826 from apainintheneck/stop-using-api-in-bump

dev-cmd/bump : stop using API to load formulae/casks
This commit is contained in:
Kevin 2023-08-04 19:39:34 -07:00 committed by GitHub
commit 22afefce8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,10 +79,12 @@ module Homebrew
end
end
if formulae_and_casks.present?
handle_formula_and_casks(formulae_and_casks, args)
else
handle_api_response(args)
Homebrew.with_no_api_env do
if formulae_and_casks.present?
handle_formula_and_casks(formulae_and_casks, args)
else
handle_api_response(args)
end
end
end