diagnostic: ignore duplicated brew-cask commands

These are intentionally duplicated for now until the Cask migration is
complete.
This commit is contained in:
Mike McQuaid 2016-08-19 14:14:18 +01:00
parent bd1ded93ec
commit ff8d22f3b3

View File

@ -1090,6 +1090,8 @@ module Homebrew
cmd_map[cmd_name] << cmd
end
cmd_map.reject! { |_cmd_name, cmd_paths| cmd_paths.size == 1 }
# TODO: remove when Cask migration is complete.
cmd_map.reject! { |cmd_name, _cmd_paths| cmd_name.include? "brew-cask" }
return if cmd_map.empty?
message = "You have external commands with conflicting names.\n"