aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-21 16:53:04 -0700
committerAdam Vandenberg2009-09-21 16:53:04 -0700
commit8d7ebb8ba3390603c0135edae7c9561b1e04cc16 (patch)
tree23e24e1f0afc5d364105ed7f44cdf0dae2354425
parent50b981a46959d4bb3c8aab1f653a04d688c06bd4 (diff)
downloadbrew-8d7ebb8ba3390603c0135edae7c9561b1e04cc16.tar.bz2
length, not count. Fixes issue 55.
-rwxr-xr-xbin/brew4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 525c0d390..58638ae02 100755
--- a/bin/brew
+++ b/bin/brew
@@ -78,7 +78,7 @@ begin
end
end
- if ARGV.interactive? and ARGV.formulae.count > 1
+ if ARGV.interactive? and ARGV.formulae.length > 1
# the reason for this is interactive mode is a little tricky to do
# with more than one formula, AND I can't think of a time where you'd
# want to do it anyway. If someone comes up with a legitimate use for
@@ -94,7 +94,7 @@ begin
formulae = ARGV.formulae.reject do |f|
if f.installed?
message = "Formula already installed: #{f.prefix}"
- if ARGV.formulae.count > 1
+ if ARGV.formulae.length > 1
opoo message
else
puts message # if only one is being installed a warning looks severe