diff options
| author | Mike McQuaid | 2017-11-27 14:43:24 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-11-27 14:43:24 +0000 |
| commit | cd7049bb72faaae6bebe0739b5ffef0eed5e6648 (patch) | |
| tree | 4ca516c1d5743d84562dd3c7c34fbe3a596ef462 | |
| parent | f262cbc53126078e527b9ab6c250f3054dc892df (diff) | |
| download | brew-cd7049bb72faaae6bebe0739b5ffef0eed5e6648.tar.bz2 | |
bin/brew: don't set empty, unfiltered variables.
Otherwise we unconditionally set e.g. `CI`, `TRAVIS`.
| -rwxr-xr-x | bin/brew | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -91,6 +91,9 @@ then for VAR in HOME SHELL PATH TERM LOGNAME USER CI TRAVIS \ "${!HOMEBREW_@}" "${!TRAVIS_@}" do + # Skip if variable value is empty. + [[ -z "${!VAR}" ]] && continue + FILTERED_ENV+=( "${VAR}=${!VAR}" ) done |
