add prefix to variable name

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-08-10 16:18:20 +02:00
parent 160d85dee1
commit 8fe9e86254
2 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@
__cdist_manifest_run_init() __cdist_manifest_run_init()
{ {
# FIXME: probably do not export but always set explicitly?
export $__cdist_name_var_manifest="$__cdist_manifest_dir" export $__cdist_name_var_manifest="$__cdist_manifest_dir"
__cdist_echo info "Running initial manifest for $__cdist_target_host " __cdist_echo info "Running initial manifest for $__cdist_target_host "

View file

@ -26,7 +26,7 @@ __cdist_object_all()
{ {
[ $# -eq 1 ] || __cdist_usage "<command>" [ $# -eq 1 ] || __cdist_usage "<command>"
__cdist_command="$1"; shift __cdist_object_all_command="$1"; shift
__cdist_objects="$__cdist_tmp_dir/objects" __cdist_objects="$__cdist_tmp_dir/objects"
@ -50,7 +50,7 @@ __cdist_object_all()
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
__cdist_object="$1"; shift __cdist_object="$1"; shift
$__cdist_command "$__cdist_object" $__cdist_object_all_command "$__cdist_object"
done done
done done
} }