Setting HOMEBREW_ASK to nil in case it was set before

This commit is contained in:
thibhero 2025-04-30 23:50:07 -04:00
parent d8b96a4385
commit d19de85896

View File

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