Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Library/Homebrew/brew.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class MissingEnvironmentVariables < RuntimeError; end
possible_tap = Tap.fetch(possible_tap.first) if possible_tap

if !possible_tap || possible_tap.installed? || Tap.untapped_official_taps.include?(possible_tap.name)
# 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

Expand Down