Improve message

This commit is contained in:
Rylan Polster 2022-02-11 10:49:21 -05:00 committed by GitHub
parent 7a5eb3dbdb
commit 0c520844b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <command>` is no longer supported. Use `brew <command> --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 <command> --cask` instead." if cmd == "cask"
odie "Unknown command: #{cmd}"
end