debug object run

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-07 10:12:40 +02:00
parent 68a51da380
commit 06a6bf1a0d
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@ __cdist_object_code_run()
{ {
[ $# -eq 1 ] || __cdist_exit_err "<object>" [ $# -eq 1 ] || __cdist_exit_err "<object>"
# set -x set -x
if [ ! -d "$(__cdist_object_dir "$1")" ]; then if [ ! -d "$(__cdist_object_dir "$1")" ]; then
__cdist_exit_err "Object undefined" __cdist_exit_err "Object undefined"
@ -46,5 +46,5 @@ __cdist_object_code_run()
__cdist_run_remote $(__cdist_remote_object_code "$1") __cdist_run_remote $(__cdist_remote_object_code "$1")
fi fi
# set +x set +x
} }

View file

@ -64,6 +64,7 @@ __cdist_object_run()
"$(__cdist_remote_object_dir "$__cdist_object_self")" "$(__cdist_remote_object_dir "$__cdist_object_self")"
__cdist_echo debug "Before run" __cdist_echo debug "Before run"
__cdist_object_code_run "$__cdist_object_self" __cdist_object_code_run "$__cdist_object_self"
__cdist_echo debug "Object run done
# Mark this object as done # Mark this object as done
touch "$__cdist_object_finished" touch "$__cdist_object_finished"