Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Library/Homebrew/cmd/bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ def run
raise UsageError, "This command does not take more than 1 subcommand argument."
end

if args.check? && BUNDLE_EXEC_COMMANDS.exclude?(subcommand)
if args.check? && !ENV["HOMEBREW_BUNDLE_NO_CHECK"] && BUNDLE_EXEC_COMMANDS.exclude?(subcommand)
raise UsageError, "`--check` can be used only with #{BUNDLE_EXEC_COMMANDS.join(", ")}."
end

if args.no_secrets? && BUNDLE_EXEC_COMMANDS.exclude?(subcommand)
if args.no_secrets? && !ENV["HOMEBREW_BUNDLE_NO_SECRETS"] && BUNDLE_EXEC_COMMANDS.exclude?(subcommand)
raise UsageError, "`--no-secrets` can be used only with #{BUNDLE_EXEC_COMMANDS.join(", ")}."
end

Expand Down
Loading