From 581b29ca9755f7c3fd520a8e54bed96cd8d4d007 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 18 Mar 2011 02:43:25 +0100 Subject: [PATCH] warn about missing manifest (i.e. abort) Signed-off-by: Nico Schottelius --- bin/cdist-manifest-run | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/cdist-manifest-run b/bin/cdist-manifest-run index 240d446b..8561f1f7 100755 --- a/bin/cdist-manifest-run +++ b/bin/cdist-manifest-run @@ -47,6 +47,8 @@ cdist-type-build-emulation "${__cdist_out_type_bin_dir}" \ export PATH="${__cdist_out_type_bin_dir}:$PATH" # Force -x, so the user is aware the file is executed +[ -f "${__cdist_manifest}" ] \ + || __cdist_exit_err "Missing manifest ${__cdist_manifest}" [ -x "${__cdist_manifest}" ] \ || __cdist_exit_err "${__cdist_manifest} needs to be executable." mkdir -p "${__cdist_output_dir}" \