check for missing objects

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-18 01:45:54 +01:00
parent 84b4bf628e
commit 4cc237fa03
2 changed files with 7 additions and 1 deletions

View file

@ -227,7 +227,8 @@ __cdist_object_id_from_object()
__cdist_object_dir()
{
echo "${__cdist_out_object_dir}/$1"
__cdist_object_dir="${__cdist_out_object_dir}/$1"
echo "$__cdist_object_dir"
}
__cdist_remote_object_dir()

View file

@ -30,6 +30,11 @@ __cdist_out_object_dir="$1"; shift
object="$1"; shift
if [ ! -d "$(__cdist_object_dir "$object")" ]; then
__cdist_exit_err "Object $object missing."
fi
finished="$(__cdist_object_code_finished "$object")"
code="$(__cdist_object_code "$object")"
require="$(__cdist_object_require "$object")"