From 279d519dda0caa14f8488392675f6f411c0e8d99 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Sep 2011 00:10:53 +0200 Subject: [PATCH] debug for core/__cdist_object_code_run Signed-off-by: Nico Schottelius --- core/__cdist_object_code_run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/__cdist_object_code_run b/core/__cdist_object_code_run index a932f655..26bf7ef8 100755 --- a/core/__cdist_object_code_run +++ b/core/__cdist_object_code_run @@ -26,7 +26,6 @@ __cdist_object_code_run() { [ $# -eq 1 ] || __cdist_exit_err "" - set -x if [ ! -d "$(__cdist_object_dir "$1")" ]; then __cdist_exit_err "Object undefined" @@ -34,6 +33,7 @@ __cdist_object_code_run() # Code local export __cdist_out_object_dir="$__cdist_out_object_dir" + __cdist_echo debug "Trying to run local code" if __cdist_is_executable \ "$(__cdist_object_code "$1" "${__cdist_name_gencode_local}")"; then __cdist_run_shell \ @@ -41,10 +41,10 @@ __cdist_object_code_run() fi # Code remote + __cdist_echo debug "Trying to run remote code" if __cdist_is_executable \ "$(__cdist_object_code "$1" "${__cdist_name_gencode_remote}")"; then __cdist_run_remote $(__cdist_remote_object_code "$1") fi - set +x }