Merge pull request #20486 from Homebrew/env-file-expand

bin/brew: expand env file filter to allow manpage-documented envs
This commit is contained in:
Bo Anderson 2025-08-18 14:24:53 +00:00 committed by GitHub
commit e13f4a8295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,8 +118,8 @@ export_homebrew_env_file() {
[[ -r "${env_file}" ]] || return 0 [[ -r "${env_file}" ]] || return 0
while read -r line while read -r line
do do
# only load HOMEBREW_* lines # only load variables defined in env_config.rb
[[ "${line}" = "HOMEBREW_"* ]] || continue [[ "${line}" =~ ^(HOMEBREW_|SUDO_ASKPASS=|(all|no|ftp|https?)_proxy=) ]] || continue
# forbid overriding variables that are set in this file # forbid overriding variables that are set in this file
local invalid_variable local invalid_variable