From 0dd320318706bed665038350f11a74a0fb8e7f34 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 20 Aug 2016 07:02:23 +0200 Subject: Install Cask’s default tap if untapped. --- Library/Homebrew/cask/lib/hbc/cli.rb | 1 + Library/Homebrew/cask/lib/hbc/locations.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cask') diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index be40ce11b..d1fb99108 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -142,6 +142,7 @@ class Hbc::CLI command_string, *rest = *arguments rest = process_options(rest) command = Hbc.help ? "help" : lookup_command(command_string) + Hbc.default_tap.install unless Hbc.default_tap.installed? Hbc.init if should_init?(command) run_command(command, *rest) rescue Hbc::CaskError, Hbc::CaskSha256MismatchError => e diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb index e4d88f318..b800cf6b6 100644 --- a/Library/Homebrew/cask/lib/hbc/locations.rb +++ b/Library/Homebrew/cask/lib/hbc/locations.rb @@ -126,7 +126,7 @@ module Hbc::Locations attr_writer :default_tap def default_tap - @default_tap ||= Tap.fetch("caskroom/homebrew-cask") + @default_tap ||= Tap.fetch("caskroom", "homebrew-cask") end def path(query) -- cgit v1.2.3