cmd/install: check before tapping

Changes introduced in dfdc570abcd7c19a7b385c2fe8c6b26b12bca646 were
causing installations using fully-qualified formula names to fail.
This commit is contained in:
Alex Dunn 2015-11-09 07:25:26 -08:00
parent ac6b22fd69
commit 95bbd8ef02

View File

@ -19,7 +19,7 @@ module Homebrew
user = $1 user = $1
repo = $2.sub(/^homebrew-/, "") repo = $2.sub(/^homebrew-/, "")
tap = Tap.fetch(user, repo) tap = Tap.fetch(user, repo)
tap.install tap.install unless tap.installed?
end end
end unless ARGV.force? end unless ARGV.force?