mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-13 23:49:04 +08:00
bin/brew: don't copy across zeroed env values.
This commit is contained in:
parent
68ef29fb5c
commit
916c25ef18
4
bin/brew
4
bin/brew
@ -183,8 +183,8 @@ MANPAGE_VARS=(
|
||||
)
|
||||
for VAR in "${MANPAGE_VARS[@]}"
|
||||
do
|
||||
# Skip if variable value is empty.
|
||||
[[ -z "${!VAR:-}" ]] && continue
|
||||
# Skip if variable value is empty or set to 0.
|
||||
[[ -z "${!VAR:-}" || "${!VAR:-}" = "0" ]] && continue
|
||||
|
||||
VAR_NEW="HOMEBREW_${VAR}"
|
||||
# Skip if existing HOMEBREW_* variable is set.
|
||||
|
Loading…
x
Reference in New Issue
Block a user