begin to re-do __explorer and __global on remote side with functions
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								5b9881bef6
							
						
					
				
			
			
				commit
				
					
						b06f6be5a6
					
				
			
		
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -39,8 +39,13 @@ __cdist_explorer_run()
 | 
			
		|||
   # Execute all explorers
 | 
			
		||||
   cd "$2";
 | 
			
		||||
   for __cdist_explorer_run_explorer in *; do
 | 
			
		||||
      __cdist_run_remote "$3/$__cdist_explorer_run_explorer" ">" \
 | 
			
		||||
         "$4/$__cdist_explorer_run_explorer"
 | 
			
		||||
      #BUG: need to export __explorer to remote side!
 | 
			
		||||
      #exit 23
 | 
			
		||||
      __cdist_run_remote \
 | 
			
		||||
         "export $__cdist_name_var_explorer=\"$__cdist_remote_explorer_dir\";" \
 | 
			
		||||
         "export $__cdist_name_var_global=\"$__cdist_remote_out_dir\";" \
 | 
			
		||||
         "$3/$__cdist_explorer_run_explorer" > \
 | 
			
		||||
            "$4/$__cdist_explorer_run_explorer"
 | 
			
		||||
   done
 | 
			
		||||
 | 
			
		||||
   # Transfer results back
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue