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.)
This commit is contained in:
parent
aa8329b5a0
commit
29d80643d2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user