forked from ungleich-public/cdist
		
	decrease first, last number is unused
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								0122ccc3ee
							
						
					
				
			
			
				commit
				
					
						9c60a81d8a
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -53,14 +53,14 @@ done
 | 
				
			||||||
# else wait after all are started
 | 
					# else wait after all are started
 | 
				
			||||||
if [ "$parallel" ]; then
 | 
					if [ "$parallel" ]; then
 | 
				
			||||||
   __cdist_echo info "Waiting for cdist-deploy-to jobs to finish"
 | 
					   __cdist_echo info "Waiting for cdist-deploy-to jobs to finish"
 | 
				
			||||||
   while [ "$i" -gt 0 ]; do
 | 
					   while [ "$i" -ge 0 ]; do
 | 
				
			||||||
 | 
					      i=$((i-1))
 | 
				
			||||||
      eval pid=\$pid_$i
 | 
					      eval pid=\$pid_$i
 | 
				
			||||||
      eval host=\$host_$i
 | 
					      eval host=\$host_$i
 | 
				
			||||||
      wait "$pid"
 | 
					      wait "$pid"
 | 
				
			||||||
      if [ $? -ne 0 ]; then
 | 
					      if [ $? -ne 0 ]; then
 | 
				
			||||||
         __cdist_echo error "Configuration of host $host failed."
 | 
					         __cdist_echo error "Configuration of host $host failed."
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
      i=$((i-1))
 | 
					 | 
				
			||||||
      shift
 | 
					      shift
 | 
				
			||||||
   done
 | 
					   done
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue