aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-21 16:19:46 +0100
committerMartin Afanasjew2016-01-26 16:26:07 +0100
commit29d80643d238282f5440122d600614eb7b8fc63d (patch)
tree8fff15d744d4301f6a79ddfc9913ab79c62093d4 /Library
parentaa8329b5a024a4644eb39f262a4b829c7526b721 (diff)
downloadbrew-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-xLibrary/brew.rb2
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