export __global in cdist-remote-explorer-run

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-07 18:05:13 +01:00
parent d3fe22b281
commit 3cd90300f1
1 changed files with 2 additions and 4 deletions

View File

@ -39,12 +39,10 @@ __cdist_explorer_dir="$1"; shift
# Write output here
__cdist_my_out_dir="$1"; shift
# cd to this dir
__cdist_work_dir="$__cdist_remote_base_dir"
# Setup environment
export $__cdist_variable_name="$__cdist_explorer_dir"
cd "${__cdist_work_dir}"
export __global="$__cdist_remote_out_dir"
mkdir -p "$__cdist_my_out_dir"
# Ensure there is at least one explorer