requiring set +e in __cdist_exec_fail_on_error to catch error ourselves

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 20:18:31 +02:00
parent a23c926df7
commit e4390da300

View file

@ -176,6 +176,7 @@ __cdist_echo()
__cdist_exec_fail_on_error()
{
set +e
sh -e "$@"
if [ "$?" -ne 0 ]; then
__cdist_echo error "$1 exited non-zero, showing code:"