diff options
| author | Mike McQuaid | 2017-11-27 15:14:29 +0000 |
|---|---|---|
| committer | GitHub | 2017-11-27 15:14:29 +0000 |
| commit | 639707c853827623c9b2f65c8ca16d237538cf46 (patch) | |
| tree | 4ca516c1d5743d84562dd3c7c34fbe3a596ef462 | |
| parent | f262cbc53126078e527b9ab6c250f3054dc892df (diff) | |
| parent | cd7049bb72faaae6bebe0739b5ffef0eed5e6648 (diff) | |
| download | brew-639707c853827623c9b2f65c8ca16d237538cf46.tar.bz2 | |
Merge pull request #3490 from MikeMcQuaid/env-filtering-empty
bin/brew: don't set empty, unfiltered variables.
| -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 |
