From 2220054b4d61feeba4e0b9e6641b608565ad5ee9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 17 Feb 2011 15:32:11 +0100 Subject: [PATCH] manifest must exit non-zero Signed-off-by: Nico Schottelius --- bin/cdist-manifest-run | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/cdist-manifest-run b/bin/cdist-manifest-run index 4bdbde79..6789b9ec 100755 --- a/bin/cdist-manifest-run +++ b/bin/cdist-manifest-run @@ -46,4 +46,11 @@ if [ ! -x "${__cdist_manifest}" ]; then fi mkdir -p "${__cdist_output_dir}" -"${__cdist_manifest}" + +set +e + +"${__cdist_manifest}"; ret=$? + +if [ "$ret" -ne 0 ]; then + __cdist_exit_err "Error: ${__cdist_manifest} exited non-zero." +fi