tap: warn already tapped
This commit is contained in:
parent
aab53e65a9
commit
d7e95997ae
@ -14,9 +14,11 @@ module Homebrew
|
|||||||
else
|
else
|
||||||
user, repo = tap_args
|
user, repo = tap_args
|
||||||
tap = Tap.fetch(user, repo)
|
tap = Tap.fetch(user, repo)
|
||||||
unless tap.installed?
|
begin
|
||||||
tap.install(:clone_target => ARGV.named[1],
|
tap.install(:clone_target => ARGV.named[1],
|
||||||
:full_clone => ARGV.include?("--full"))
|
:full_clone => ARGV.include?("--full"))
|
||||||
|
rescue TapAlreadyTappedError => e
|
||||||
|
opoo e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user