diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 1423097280..4e26545326 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -121,9 +121,8 @@ begin possible_tap = Tap.fetch(possible_tap.first) if possible_tap if !possible_tap || possible_tap.installed? || Tap.untapped_official_taps.include?(possible_tap.name) - if cmd == "cask" # Check for cask explicitly because it's very common in old guides - odie "`brew cask ` is no longer supported. Use `brew --cask` instead." - end + # Check for cask explicitly because it's very common in old guides + odie "`brew cask` is no longer a `brew` command. Use `brew --cask` instead." if cmd == "cask" odie "Unknown command: #{cmd}" end