bin/brew: don't copy across zeroed env values.

This commit is contained in:
Mike McQuaid 2025-06-05 08:33:08 +01:00
parent 68ef29fb5c
commit 916c25ef18
No known key found for this signature in database

View File

@ -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.