aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-08-19 14:14:18 +0100
committerMike McQuaid2016-08-19 14:14:18 +0100
commitff8d22f3b365307e88b7c0bdf16ae6e6d241d9bd (patch)
treef5c7b4d247a005e11472d9e6832d5d4695886078 /Library/Homebrew
parentbd1ded93ec46b2ae9c37dbf17dd6d74d3f727440 (diff)
downloadbrew-ff8d22f3b365307e88b7c0bdf16ae6e6d241d9bd.tar.bz2
diagnostic: ignore duplicated `brew-cask` commands
These are intentionally duplicated for now until the Cask migration is complete.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/diagnostic.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index a0c6dcd21..1b6fb4568 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -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"