Use %w quoting in ENV list
This commit is contained in:
parent
f50f2f8d52
commit
7adf1c80bd
2
bin/brew
2
bin/brew
@ -302,7 +302,7 @@ begin
|
|||||||
# Check for an external shell command
|
# Check for an external shell command
|
||||||
if system "/usr/bin/which -s brew-#{arg}"
|
if system "/usr/bin/which -s brew-#{arg}"
|
||||||
# Add some Homebrew vars to the ENV
|
# Add some Homebrew vars to the ENV
|
||||||
['CACHE', 'CELLAR', 'LIBRARY_PATH', 'PREFIX', 'REPOSITORY'].each do |e|
|
%w(CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY).each do |e|
|
||||||
ENV["HOMEBREW_#{e}"] = eval("HOMEBREW_#{e}")
|
ENV["HOMEBREW_#{e}"] = eval("HOMEBREW_#{e}")
|
||||||
end
|
end
|
||||||
exec("brew-#{arg}", *ARGV)
|
exec("brew-#{arg}", *ARGV)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user