bin/brew: expand env file filter to allow manpage-documented envs

This commit is contained in:
Bo Anderson 2025-08-18 03:24:36 +01:00
parent 160af073a5
commit 5e339e2081
No known key found for this signature in database

View File

@ -125,8 +125,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