forked from ungleich-public/cdist
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:
parent
a23c926df7
commit
e4390da300
1 changed files with 1 additions and 0 deletions
|
@ -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:"
|
||||
|
|
Loading…
Reference in a new issue