diff options
| author | Mike McQuaid | 2010-11-21 10:33:14 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-11-21 10:33:14 +0000 |
| commit | 5733fce6fc851ced8e16d32a7e991d777b9e2192 (patch) | |
| tree | 0dc14a0ebbe81fc9634a4c5a9417d948e2322aa3 /Library | |
| parent | 331a725516d17cc0a129d81c8eceff3c13ca5686 (diff) | |
| download | brew-5733fce6fc851ced8e16d32a7e991d777b9e2192.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-pull.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb index bad9c4ce7..38ed73b39 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. |
