aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMike McQuaid2017-04-23 16:23:12 +0100
committerGitHub2017-04-23 16:23:12 +0100
commitf3dc06a4e7e81304b335bd0f34ef748b9d1a35a6 (patch)
treee477b153613853aa26091920cf9fc407688fdad2 /bin
parente7e53b89fce480cb4f35d801cc293ef23787fcaf (diff)
parent45a7730f61ab24a0e5e3bc00d757a4521c2e1c1d (diff)
downloadbrew-f3dc06a4e7e81304b335bd0f34ef748b9d1a35a6.tar.bz2
Merge pull request #2532 from MikeMcQuaid/fix-todo
Fix and remove various TODOs.
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