Use %w quoting in ENV list

This commit is contained in:
Adam Vandenberg 2010-09-22 08:59:38 -07:00
parent f50f2f8d52
commit 7adf1c80bd

View File

@ -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)