aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorMike McQuaid2016-08-20 08:46:53 +0100
committerGitHub2016-08-20 08:46:53 +0100
commitdf3dc9bb262f9eaabdc10350e1829b0684cfd4f5 (patch)
treec92194867486a2ef215698e0b076d405f00f69da /Library/Homebrew/cask
parent6da26069364fee09709bf572a10288d3d30006f9 (diff)
parent0dd320318706bed665038350f11a74a0fb8e7f34 (diff)
downloadbrew-df3dc9bb262f9eaabdc10350e1829b0684cfd4f5.tar.bz2
Merge pull request #765 from reitermarkus/caskroom-tap
Install Cask’s default tap if untapped.
Diffstat (limited to 'Library/Homebrew/cask')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/locations.rb2
2 files changed, 2 insertions, 1 deletions
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)