forked from ungleich-public/cdist
		
	also filter stderr and add hostname as prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								df9bdef75e
							
						
					
				
			
			
				commit
				
					
						dc820cf31e
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -42,13 +42,13 @@ fi
 | 
				
			||||||
i=0
 | 
					i=0
 | 
				
			||||||
while [ $# -gt 0 ]; do
 | 
					while [ $# -gt 0 ]; do
 | 
				
			||||||
   if [ "$parallel" ]; then
 | 
					   if [ "$parallel" ]; then
 | 
				
			||||||
      cdist-deploy-to "$1" | filter "$1" &
 | 
					      cdist-deploy-to "$1" 2>&1 | filter "$1" &
 | 
				
			||||||
      # Record pid and host for use later
 | 
					      # Record pid and host for use later
 | 
				
			||||||
      i=$((i+1))
 | 
					      i=$((i+1))
 | 
				
			||||||
      eval pid_$i=$!
 | 
					      eval pid_$i=$!
 | 
				
			||||||
      eval host_$i=\$1
 | 
					      eval host_$i=\$1
 | 
				
			||||||
   else
 | 
					   else
 | 
				
			||||||
      cdist-deploy-to "$1" | filter "$1"
 | 
					      cdist-deploy-to "$1" 2>&1 | filter "$1"
 | 
				
			||||||
   fi
 | 
					   fi
 | 
				
			||||||
   shift
 | 
					   shift
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue