use correct finish variable
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								96cbb37a29
							
						
					
				
			
			
				commit
				
					
						c287d33ee3
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -49,7 +49,7 @@ echo "Checking    code  for $object ..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f "$require" ]; then
 | 
					if [ -f "$require" ]; then
 | 
				
			||||||
   while read requirement; do
 | 
					   while read requirement; do
 | 
				
			||||||
      echo "Requiring object $requirement for $object ..."
 | 
					      echo "Requiring  dependency $requirement for $object ..."
 | 
				
			||||||
      cdist-remote-code-run "$__cdist_out_object_dir" "$requirement"
 | 
					      cdist-remote-code-run "$__cdist_out_object_dir" "$requirement"
 | 
				
			||||||
   done < "$require"
 | 
					   done < "$require"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					@ -57,9 +57,9 @@ fi
 | 
				
			||||||
if [ -e "$code" ]; then
 | 
					if [ -e "$code" ]; then
 | 
				
			||||||
   if [ -f "$code" ]; then
 | 
					   if [ -f "$code" ]; then
 | 
				
			||||||
      if [ -x "$code" ]; then
 | 
					      if [ -x "$code" ]; then
 | 
				
			||||||
         echo "Executing code for $object ..."
 | 
					         echo "Executing   code  for $object ..."
 | 
				
			||||||
         "$code"
 | 
					         "$code"
 | 
				
			||||||
         touch "$__cdist_finished"
 | 
					         touch "$finished"
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
         __cdist_exit_err "$code exists, but is not executable."
 | 
					         __cdist_exit_err "$code exists, but is not executable."
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue