cmd/install: add force/debug/verbose to cask.
Closes Homebrew/homebrew#37217.
This commit is contained in:
		
							parent
							
								
									12861686b8
								
							
						
					
					
						commit
						03d3f9d292
					
				@ -31,9 +31,13 @@ module Homebrew
 | 
			
		||||
      if ARGV.casks.any?
 | 
			
		||||
        brew_cask = Formulary.factory("brew-cask")
 | 
			
		||||
        install_formula(brew_cask) unless brew_cask.installed?
 | 
			
		||||
        args = []
 | 
			
		||||
        args << "--force" if ARGV.force?
 | 
			
		||||
        args << "--debug" if ARGV.debug?
 | 
			
		||||
        args << "--verbose" if ARGV.verbose?
 | 
			
		||||
 | 
			
		||||
        ARGV.casks.each do |c|
 | 
			
		||||
          cmd = "brew", "cask", "install", c
 | 
			
		||||
          cmd = "brew", "cask", "install", c, *args
 | 
			
		||||
          ohai cmd.join " "
 | 
			
		||||
          system(*cmd)
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user