check whether token is multiple tap's name
This commit is contained in:
parent
985f29f595
commit
84ec42f31b
@ -236,7 +236,9 @@ module Cask
|
||||
when 2..Float::INFINITY
|
||||
loaders = possible_tap_casks.map(&FromTapPathLoader.method(:new))
|
||||
|
||||
raise TapCaskAmbiguityError.new(ref, loaders)
|
||||
raise TapCaskAmbiguityError.new(ref, loaders) if loaders.map(&:tap).map(&:name).size == 1
|
||||
|
||||
return FromTapPathLoader.new(possible_tap_casks.first)
|
||||
end
|
||||
|
||||
possible_installed_cask = Cask.new(ref)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user