install: remove overcautious array manipulation

This commit is contained in:
Jack Nagel 2013-06-12 09:02:20 -05:00
parent 5369199df3
commit 2045217a68

View File

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