From b06f6be5a6d52d9737a0cec37445d423bd4d70d6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 26 Jul 2011 23:39:53 +0200 Subject: [PATCH] begin to re-do __explorer and __global on remote side with functions Signed-off-by: Nico Schottelius --- core/__cdist_explorer_run | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/__cdist_explorer_run b/core/__cdist_explorer_run index a5545faf..db5f2e2c 100755 --- a/core/__cdist_explorer_run +++ b/core/__cdist_explorer_run @@ -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