diff options
| author | Jack Nagel | 2013-06-12 09:02:20 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-12 09:02:20 -0500 |
| commit | 453a5811505f331cde7f53ad48d10f31424751f3 (patch) | |
| tree | 7c983c57464112f44e393ad5705e3132acef31a4 /Library | |
| parent | b0e5292ffe166197dcb9b7a8e1f70790f423ba89 (diff) | |
| download | homebrew-453a5811505f331cde7f53ad48d10f31424751f3.tar.bz2 | |
install: remove overcautious array manipulation
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index cbeb433eb..51c5ee24a 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -18,7 +18,8 @@ module Homebrew extend self end end unless ARGV.force? - install_formulae ARGV.formulae + perform_preinstall_checks + ARGV.formulae.each { |f| install_formula(f) } end def check_ppc @@ -69,16 +70,6 @@ module Homebrew extend self check_cellar end - def install_formulae formulae - formulae = [formulae].flatten.compact - unless formulae.empty? - perform_preinstall_checks - formulae.each do |f| - install_formula(f) - end - end - end - def install_formula f fi = FormulaInstaller.new(f) fi.install |
