From 3376646b06da326b4846f3db4ad3a18b9144e471 Mon Sep 17 00:00:00 2001
From: Luthaf <luthaf@luthaf.fr>
Date: Fri, 4 Sep 2020 11:37:37 +0200
Subject: [PATCH] Do not suggest use of deprecated brew cask reinstall

---
 Library/Homebrew/cask/exceptions.rb          | 2 +-
 Library/Homebrew/extend/os/mac/diagnostic.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Library/Homebrew/cask/exceptions.rb b/Library/Homebrew/cask/exceptions.rb
index 7a97f7f133..00113d2a86 100644
--- a/Library/Homebrew/cask/exceptions.rb
+++ b/Library/Homebrew/cask/exceptions.rb
@@ -99,7 +99,7 @@ module Cask
         Cask '#{token}' is already installed.
 
         To re-install #{token}, run:
-          #{Formatter.identifier("brew cask reinstall #{token}")}
+          #{Formatter.identifier("brew reinstall #{token}")}
       EOS
     end
   end
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index ff7d549fbe..9ebd2f88e3 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -245,7 +245,7 @@ module Homebrew
           Your XQuartz (#{MacOS::XQuartz.version}) is outdated.
           Please install XQuartz #{MacOS::XQuartz.latest_version} (or delete the current version).
           XQuartz can be updated using Homebrew Cask by running:
-            brew cask reinstall xquartz
+            brew reinstall xquartz
         EOS
       end
 
-- 
GitLab