bin/brew: expand env file filter to allow manpage-documented envs
This commit is contained in:
parent
160af073a5
commit
5e339e2081
4
bin/brew
4
bin/brew
@ -125,8 +125,8 @@ export_homebrew_env_file() {
|
||||
[[ -r "${env_file}" ]] || return 0
|
||||
while read -r line
|
||||
do
|
||||
# only load HOMEBREW_* lines
|
||||
[[ "${line}" = "HOMEBREW_"* ]] || continue
|
||||
# only load variables defined in env_config.rb
|
||||
[[ "${line}" =~ ^(HOMEBREW_|SUDO_ASKPASS=|(all|no|ftp|https?)_proxy=) ]] || continue
|
||||
|
||||
# forbid overriding variables that are set in this file
|
||||
local invalid_variable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user