Merge pull request #2669 from reitermarkus/fix-appcast-checkpoint
Fix appcast checkpoint command.
This commit is contained in:
commit
0871e069a2
@ -22,10 +22,6 @@ module Hbc
|
|||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.cask_tokens_from(args)
|
|
||||||
args.reject { |a| a.empty? || a.chars.first == "-" }
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.help
|
def self.help
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
@ -9,10 +9,10 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
if cask_tokens.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
|
if args.all? { |t| t =~ %r{^https?://} && t !~ /\.rb$/ }
|
||||||
self.class.appcask_checkpoint_for_url(cask_tokens)
|
self.class.appcask_checkpoint_for_url(args)
|
||||||
else
|
else
|
||||||
self.class.appcask_checkpoint(cask_tokens, calculate?)
|
self.class.appcask_checkpoint(args, calculate?)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user