aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-12 09:02:20 -0500
committerJack Nagel2013-06-12 09:02:20 -0500
commit453a5811505f331cde7f53ad48d10f31424751f3 (patch)
tree7c983c57464112f44e393ad5705e3132acef31a4 /Library
parentb0e5292ffe166197dcb9b7a8e1f70790f423ba89 (diff)
downloadhomebrew-453a5811505f331cde7f53ad48d10f31424751f3.tar.bz2
install: remove overcautious array manipulation
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb13
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