Merge pull request #19862 from tyuwags/master

Setting `HOMEBREW_ASK` to nil in case it was set before, fixes #19861
This commit is contained in:
Mike McQuaid 2025-05-01 07:24:15 +00:00 committed by GitHub
commit d317adb0d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,6 +144,9 @@ module Homebrew
# Keep this inside `run` to keep --help fast. # Keep this inside `run` to keep --help fast.
require "bundle" require "bundle"
# Don't want to ask for input in Bundle
ENV["HOMEBREW_ASK"] = nil
subcommand = args.named.first.presence subcommand = args.named.first.presence
if %w[exec add remove].exclude?(subcommand) && args.named.size > 1 if %w[exec add remove].exclude?(subcommand) && args.named.size > 1
raise UsageError, "This command does not take more than 1 subcommand argument." raise UsageError, "This command does not take more than 1 subcommand argument."