aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCellar/homebrew/brew6
1 files changed, 4 insertions, 2 deletions
diff --git a/Cellar/homebrew/brew b/Cellar/homebrew/brew
index 8aa48211f..68efa9a48 100755
--- a/Cellar/homebrew/brew
+++ b/Cellar/homebrew/brew
@@ -7,9 +7,11 @@ $root = Pathname.new(__FILE__).realpath.dirname.parent.parent
case ARGV[0]
when 'brew', 'install' then
- file="#{$root}/Formula/#{ARGV[1]}"
+ abort "You must specify a Formula" unless ARGV[1]
+ ARGV.shift
+ file="#{$root}/Formula/#{ARGV.shift}"
file+='.rb' unless File.exist? file
- system "ruby #{file}"
+ system "ruby #{file} #{ARGV.join ' '}"
when 'ln' then
abort "#{ARGV[1]} is not a directory" unless File.directory? ARGV[1]