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:
commit
e13f4a8295
4
bin/brew
4
bin/brew
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user