From 5733fce6fc851ced8e16d32a7e991d777b9e2192 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 21 Nov 2010 10:33:14 +0000 Subject: [PATCH] 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. --- Library/Contributions/examples/brew-pull.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb index bad9c4ce78..38ed73b39a 100755 --- a/Library/Contributions/examples/brew-pull.rb +++ b/Library/Contributions/examples/brew-pull.rb @@ -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.