From 916c25ef1827e02c385423aaf8c185f7aef9d43c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 5 Jun 2025 08:33:08 +0100 Subject: [PATCH] bin/brew: don't copy across zeroed env values. --- bin/brew | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/brew b/bin/brew index f0b0e5adc3..3ed923d1e4 100755 --- a/bin/brew +++ b/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.