requiring set +e in __cdist_exec_fail_on_error to catch error ourselves

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.6
Nico Schottelius 14 years ago
parent a23c926df7
commit e4390da300
  1. 1
      bin/cdist-config

@ -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…
Cancel
Save