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
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def self.cask_tokens_from(args)
 | 
			
		||||
        args.reject { |a| a.empty? || a.chars.first == "-" }
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def self.help
 | 
			
		||||
        nil
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user