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:
parent
c81585130e
commit
1ad76b8af8
@ -11,6 +11,8 @@
|
||||
# or (at your option) any later version. See the COPYING file in
|
||||
# the top-level directory.
|
||||
|
||||
set -e
|
||||
|
||||
if test -n "$V"; then
|
||||
set -x
|
||||
fi
|
||||
@ -61,4 +63,6 @@ elif test -n "$DEBUG"; then
|
||||
echo
|
||||
# Force error after shell exits
|
||||
$SHELL && exit 1
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user