diff options
| author | Martin Afanasjew | 2016-01-21 16:19:46 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-01-26 16:26:07 +0100 |
| commit | 29d80643d238282f5440122d600614eb7b8fc63d (patch) | |
| tree | 8fff15d744d4301f6a79ddfc9913ab79c62093d4 /Library | |
| parent | aa8329b5a024a4644eb39f262a4b829c7526b721 (diff) | |
| download | brew-29d80643d238282f5440122d600614eb7b8fc63d.tar.bz2 | |
brew.rb: don't re-export for external commands
`bin/brew` already sets up a bunch of environment variables. There's no
need to re-export them for external commands. (`HOMEBREW_LIBRARY_PATH`
and `HOMEBREW_CACHE` continue to be determined later in the Ruby code.)
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/brew.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index a1bbc1fd5..36dd901a5 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -84,7 +84,7 @@ begin if internal_cmd Homebrew.send cmd.to_s.tr("-", "_").downcase elsif which "brew-#{cmd}" - %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e| + %w[CACHE LIBRARY_PATH].each do |e| ENV["HOMEBREW_#{e}"] = Object.const_get("HOMEBREW_#{e}").to_s end exec "brew-#{cmd}", *ARGV |
