From 838d43d74c70a301d76a47e271efd1cab2181049 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 6 Apr 2011 21:17:11 +0200 Subject: [PATCH] do not fail if code is missing, but inform Signed-off-by: Nico Schottelius --- bin/cdist-code-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cdist-code-run b/bin/cdist-code-run index 8a121a08..6389a060 100755 --- a/bin/cdist-code-run +++ b/bin/cdist-code-run @@ -29,7 +29,7 @@ __cdist_object="$1"; shift __cdist_code_type="$1"; shift if [ ! -d "$(__cdist_object_dir "$__cdist_object")" ]; then - __cdist_exit_err "Object $__cdist_object is missing." + __cdist_exit_err "Object undefined" fi code="$(__cdist_object_code "$__cdist_object")-${__cdist_code_type}" @@ -48,5 +48,5 @@ if [ -e "$code" ]; then __cdist_exit_err "$code exists, but is not a file." fi else - __cdist_exit_err "Missing code for ${__cdist_object}." + __cdist_echo info "No code-${__cdist_code_type}" fi