Merge pull request #2669 from reitermarkus/fix-appcast-checkpoint

Fix appcast checkpoint command.
This commit is contained in:
Markus Reiter 2017-05-23 15:29:38 +02:00 committed by GitHub
commit 0871e069a2
2 changed files with 3 additions and 7 deletions

View File

@ -22,10 +22,6 @@ module Hbc
true
end
def self.cask_tokens_from(args)
args.reject { |a| a.empty? || a.chars.first == "-" }
end
def self.help
nil
end

View File

@ -9,10 +9,10 @@ module Hbc
end
def run
if cask_tokens.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
self.class.appcask_checkpoint_for_url(cask_tokens)
if args.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
self.class.appcask_checkpoint_for_url(args)
else
self.class.appcask_checkpoint(cask_tokens, calculate?)
self.class.appcask_checkpoint(args, calculate?)
end
end