debug object run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								68a51da380
							
						
					
				
			
			
				commit
				
					
						06a6bf1a0d
					
				
			
		
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ __cdist_object_code_run()
 | 
			
		|||
{
 | 
			
		||||
   [ $# -eq 1 ] || __cdist_exit_err "<object>"
 | 
			
		||||
 | 
			
		||||
   # set -x
 | 
			
		||||
   set -x
 | 
			
		||||
 | 
			
		||||
   if [ ! -d "$(__cdist_object_dir "$1")" ]; then
 | 
			
		||||
      __cdist_exit_err "Object undefined"
 | 
			
		||||
| 
						 | 
				
			
			@ -46,5 +46,5 @@ __cdist_object_code_run()
 | 
			
		|||
 | 
			
		||||
      __cdist_run_remote $(__cdist_remote_object_code "$1")
 | 
			
		||||
   fi
 | 
			
		||||
   # set +x
 | 
			
		||||
   set +x
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,6 +64,7 @@ __cdist_object_run()
 | 
			
		|||
                "$(__cdist_remote_object_dir "$__cdist_object_self")"
 | 
			
		||||
      __cdist_echo debug "Before run"
 | 
			
		||||
      __cdist_object_code_run "$__cdist_object_self"
 | 
			
		||||
      __cdist_echo debug "Object run done
 | 
			
		||||
 | 
			
		||||
      # Mark this object as done
 | 
			
		||||
      touch "$__cdist_object_finished"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue