aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-08-20 07:02:23 +0200
committerMarkus Reiter2016-08-20 07:02:23 +0200
commit0dd320318706bed665038350f11a74a0fb8e7f34 (patch)
tree473fe550cb1cfbd3992769a9f37d1b8c63b3400e /Library/Homebrew/cask/lib/hbc/cli.rb
parent7395ff20018785bed7d008337b7cf98781190e0a (diff)
downloadbrew-0dd320318706bed665038350f11a74a0fb8e7f34.tar.bz2
Install Cask’s default tap if untapped.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb1
1 files changed, 1 insertions, 0 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