diff options
| author | Mike McQuaid | 2016-04-21 16:36:34 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-04-21 16:36:34 +0100 |
| commit | 00736276fe442101523e754d2ecf79b1a16f2857 (patch) | |
| tree | 52859b929c09320b1f5bbf032873d4d379e38a88 /Library | |
| parent | 2671b9f55d1f31edac28529af4e1b25c8de69c0e (diff) | |
| download | brew-00736276fe442101523e754d2ecf79b1a16f2857.tar.bz2 | |
brew.rb: uninstall old Homebrew Cask. (#121)
This version is never wanted at this point and it will help Homebrew
Cask deal with the annoying errors that result from having this version
still around (some which I've already help users debug).
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/brew.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index ebb144792..c7447348f 100644 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -78,6 +78,11 @@ begin # `Homebrew.help` never returns, except for external/unknown commands. end + # Uninstall old brew-cask if it's still around; we just use the tap now. + if cmd == "cask" && (HOMEBREW_CELLAR/"brew-cask").exist? + system(HOMEBREW_BREW_FILE, "uninstall", "--force", "brew-cask") + end + if internal_cmd Homebrew.send cmd.to_s.tr("-", "_").downcase elsif which "brew-#{cmd}" |
