use __cdist_exec_fail_on_error in bin/cdist-code-run

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 20:11:39 +02:00
commit 813b4e1f2b
3 changed files with 11 additions and 9 deletions

View file

@ -40,7 +40,7 @@ if [ -e "$code" ]; then
if [ -f "$code" ]; then
if [ -x "$code" ]; then
echo "Executing code-${__cdist_gencode_type} for $__cdist_object ..."
"$code"
__cdist_exec_fail_on_error "$code"
else
__cdist_exit_err "$code exists, but is not executable."
fi