mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Print tested command only once
This commit is contained in:
		@@ -585,7 +585,9 @@ func StartCmdAndStreamOutput(cmd *exec.Cmd) (stdout, stderr io.ReadCloser, err e
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args, " "))
 | 
			
		||||
	// cmd.Args contains command itself as 0th argument, so it's sufficient to
 | 
			
		||||
	// print 1st and latter arguments
 | 
			
		||||
	Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args[1:], " "))
 | 
			
		||||
	err = cmd.Start()
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user