install: remove overcautious array manipulation
This commit is contained in:
parent
5369199df3
commit
2045217a68
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user