remove obsolete calls to set +e/-e

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-07 10:01:59 +02:00
commit 74418c77e0
2 changed files with 1 additions and 8 deletions

View file

@ -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."
}