aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 84be2fb1d..1c7b4c897 100755
--- a/bin/brew
+++ b/bin/brew
@@ -47,8 +47,7 @@ HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
for VAR in EDITOR PATH
do
VAR_NEW="HOMEBREW_${VAR}"
- # TODO: find a better solution than this.
- env | grep -q "$VAR_NEW" && continue
+ [[ -n "${!VAR_NEW}" ]] && continue
export "$VAR_NEW"="${!VAR}"
done