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:
parent
331a725516
commit
5733fce6fc
@ -3,16 +3,16 @@
|
|||||||
|
|
||||||
require 'utils.rb'
|
require 'utils.rb'
|
||||||
|
|
||||||
if ARGV.empty?
|
|
||||||
puts 'This command requires at least one URL argument'
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
if ARGV.include? '--install'
|
if ARGV.include? '--install'
|
||||||
ARGV.delete '--install'
|
ARGV.delete '--install'
|
||||||
install = true
|
install = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ARGV.empty?
|
||||||
|
puts 'This command requires at least one URL argument'
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
HOMEBREW_REPOSITORY.cd do
|
HOMEBREW_REPOSITORY.cd do
|
||||||
ARGV.each do|arg|
|
ARGV.each do|arg|
|
||||||
# This regex should work, if it's too precise, feel free to fix it.
|
# This regex should work, if it's too precise, feel free to fix it.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user