From 45a7730f61ab24a0e5e3bc00d757a4521c2e1c1d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 23 Apr 2017 15:10:18 +0100 Subject: Fix and remove various TODOs. Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done. --- bin/brew | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3