Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-08-09 17:39:21 +02:00
commit 5c35cad477
3 changed files with 29 additions and 79 deletions

View file

@ -26,11 +26,10 @@ __cdist_run_shell()
set +e
sh -e "$@"
if [ "$?" -ne 0 ]; then
__cdist_echo error "$1 exited non-zero, aborting."
# __cdist_echo error "$1 exited non-zero"
# __cdist_echo warn "Faulty code:"
# cat "$1"
# __cdist_exit_err "Aborting due to non-zero exit code."
__cdist_echo error "$1 exited non-zero"
__cdist_echo warn "Faulty code:"
cat "$1"
__cdist_exit_err "Aborting due to non-zero exit code."
fi
set -e
}