docker: Fix exit code if $CMD failed

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1468934445-32183-8-git-send-email-famz@redhat.com
This commit is contained in:
Fam Zheng 2016-07-19 21:20:42 +08:00
parent c81585130e
commit 1ad76b8af8

View File

@ -11,6 +11,8 @@
# or (at your option) any later version. See the COPYING file in # or (at your option) any later version. See the COPYING file in
# the top-level directory. # the top-level directory.
set -e
if test -n "$V"; then if test -n "$V"; then
set -x set -x
fi fi
@ -61,4 +63,6 @@ elif test -n "$DEBUG"; then
echo echo
# Force error after shell exits # Force error after shell exits
$SHELL && exit 1 $SHELL && exit 1
else
exit 1
fi fi