forked from ungleich-public/cdist
show broken code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
90f5d47164
commit
08d18ec1ec
|
@ -174,8 +174,9 @@ __cdist_exec_fail_on_error()
|
||||||
{
|
{
|
||||||
sh -e "$@"
|
sh -e "$@"
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
__cdist_echo error "$1 exited non-zero."
|
__cdist_echo error "$1 exited non-zero, showing code:"
|
||||||
__cdist_exit_err "$1 exited non-zero."
|
cat "$1"
|
||||||
|
__cdist_exit_err "Aborting due to non-zero exit code."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue