Skip to content
Snippets Groups Projects
Commit 9554f771 authored by Max Howell's avatar Max Howell
Browse files

Append all arguments to brew install option

So forumla scripts get ARGV[2..] as their arguments when brew install x
is invoked
parent 0b0fa48c
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment