Allow --get for non-interactive builds.
This is useful for doing a --debug build, as the git repo will pick up any changes that have been made up to that point in the build process. --git is still most useful in conjunction with --interactive, though.
This commit is contained in:
		
							parent
							
								
									ec0a6ee251
								
							
						
					
					
						commit
						34e51fb16b
					
				@ -75,14 +75,16 @@ def install f
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  f.brew do
 | 
			
		||||
    if ARGV.flag? '--git'
 | 
			
		||||
      system "git init"
 | 
			
		||||
      system "git add -A"
 | 
			
		||||
    end
 | 
			
		||||
    if ARGV.flag? '--interactive'
 | 
			
		||||
      ohai "Entering interactive mode"
 | 
			
		||||
      puts "Type `exit' to return and finalize the installation"
 | 
			
		||||
      puts "Install to this prefix: #{f.prefix}"
 | 
			
		||||
 | 
			
		||||
      if ARGV.flag? '--git'
 | 
			
		||||
        system "git init"
 | 
			
		||||
        system "git add -A"
 | 
			
		||||
        puts "This directory is now a git repo. Make your changes and then use:"
 | 
			
		||||
        puts "  git diff | pbcopy"
 | 
			
		||||
        puts "to copy the diff to the clipboard."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user