aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb10
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.