remove obsolete calls to set +e/-e
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
fe68c5b556
commit
74418c77e0
2 changed files with 1 additions and 8 deletions
|
|
@ -23,10 +23,5 @@
|
|||
|
||||
__cdist_run()
|
||||
{
|
||||
set +e
|
||||
"$@"
|
||||
if [ "$?" -ne 0 ]; then
|
||||
__cdist_echo error "$1 exited non-zero, aborting."
|
||||
fi
|
||||
set -e
|
||||
"$@" || __cdist_echo error "$1 exited non-zero, aborting."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue