mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 07:59:02 +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[@]}"
|
for VAR in "${MANPAGE_VARS[@]}"
|
||||||
do
|
do
|
||||||
# Skip if variable value is empty.
|
# Skip if variable value is empty or set to 0.
|
||||||
[[ -z "${!VAR:-}" ]] && continue
|
[[ -z "${!VAR:-}" || "${!VAR:-}" = "0" ]] && continue
|
||||||
|
|
||||||
VAR_NEW="HOMEBREW_${VAR}"
|
VAR_NEW="HOMEBREW_${VAR}"
|
||||||
# Skip if existing HOMEBREW_* variable is set.
|
# Skip if existing HOMEBREW_* variable is set.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user