forked from ungleich-public/cdist
cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
8daa07acbf
commit
5c35cad477
3 changed files with 29 additions and 79 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue