brew-pull: update for new tap structure

This commit is contained in:
Misty De Meo 2014-05-06 22:39:12 -07:00
parent 313f8b137f
commit 21c2bf40f7

View File

@ -32,7 +32,7 @@ ARGV.named.each do |arg|
if tap_name = tap(url) if tap_name = tap(url)
user = url_match[1].downcase user = url_match[1].downcase
tap_dir = HOMEBREW_REPOSITORY/"Library/Taps/#{user}-#{tap_name}" tap_dir = HOMEBREW_REPOSITORY/"Library/Taps/#{user}/homebrew-#{tap_name}"
safe_system "brew", "tap", "#{user}/#{tap_name}" unless tap_dir.exist? safe_system "brew", "tap", "#{user}/#{tap_name}" unless tap_dir.exist?
Dir.chdir tap_dir Dir.chdir tap_dir
else else