diff options
| author | Mike McQuaid | 2017-05-13 11:42:01 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-05-13 11:42:01 +0100 |
| commit | 8205e61e6493f7c0a91c0311a321a80830f70bc3 (patch) | |
| tree | 99de15601ca526b829aac5884c2c9b2194e082d9 /bin | |
| parent | 459fef3b09b25d3e24cce6aa6f2e3a7bd5460a2b (diff) | |
| download | brew-8205e61e6493f7c0a91c0311a321a80830f70bc3.tar.bz2 | |
More environment filtering tweaks
- only document HOMEBREW_* variables in the manpage (although still
read from all the original environment variables).
- resort manpage environment variables in alphabetical order
- check the original path for trailing slashes
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -44,7 +44,10 @@ fi HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library" -for VAR in EDITOR PATH BINTRAY_USER BINTRAY_KEY +# Whitelist and copy to HOMEBREW_* all variables previously mentioned in +# manpage or used elsewhere by Homebrew. +for VAR in AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY BINTRAY_USER BINTRAY_KEY \ + BROWSER EDITOR GIT PATH VISUAL do VAR_NEW="HOMEBREW_${VAR}" [[ -n "${!VAR_NEW}" ]] && continue |
