Don't count --install as a valid brew pull URL.

We were checking that at least one URL argument was added but
the --install parameter was also counted in that.
This commit is contained in:
Mike McQuaid 2010-11-21 10:33:14 +00:00
parent 331a725516
commit 5733fce6fc

View File

@ -3,16 +3,16 @@
require 'utils.rb'
if ARGV.empty?
puts 'This command requires at least one URL argument'
exit 1
end
if ARGV.include? '--install'
ARGV.delete '--install'
install = true
end
if ARGV.empty?
puts 'This command requires at least one URL argument'
exit 1
end
HOMEBREW_REPOSITORY.cd do
ARGV.each do|arg|
# This regex should work, if it's too precise, feel free to fix it.