aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/brew.rb')
-rw-r--r--Library/brew.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index c06aa735e..0a1df9f9b 100644
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -94,8 +94,14 @@ begin
exit Homebrew.failed? ? 1 : 0
else
require "tap"
- possible_tap = OFFICIAL_CMD_TAPS.find { |_, cmds| cmds.include?(cmd) }
- possible_tap = Tap.fetch(possible_tap.first) if possible_tap
+ possible_tap = case cmd
+ when "brewdle", "brewdler", "bundle", "bundler"
+ Tap.fetch("Homebrew", "bundle")
+ when "cask"
+ Tap.fetch("caskroom", "cask")
+ when "services"
+ Tap.fetch("Homebrew", "services")
+ end
if possible_tap && !possible_tap.installed?
brew_uid = HOMEBREW_BREW_FILE.stat.uid