mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-12 22:21:32 +01:00
dockcross: Ensure exit code associated with run command is always returned
This commit is contained in:
parent
904cb09858
commit
c5edcb3a74
@ -186,9 +186,15 @@ docker run $TTY_ARGS --name $CONTAINER_NAME \
|
|||||||
$USER_IDS \
|
$USER_IDS \
|
||||||
$FINAL_ARGS \
|
$FINAL_ARGS \
|
||||||
$FINAL_IMAGE "$@"
|
$FINAL_IMAGE "$@"
|
||||||
|
run_exit_code=$?
|
||||||
|
|
||||||
|
# Deleting the container while ignoring error is required because of
|
||||||
|
# https://circleci.com/docs/docker-btrfs-error/.
|
||||||
|
# See issue dockcross/dockcross#50 for more details.
|
||||||
docker rm -f $CONTAINER_NAME > /dev/null || true
|
docker rm -f $CONTAINER_NAME > /dev/null || true
|
||||||
|
|
||||||
|
exit $run_exit_code
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# This image is not intended to be run manually.
|
# This image is not intended to be run manually.
|
||||||
|
Loading…
Reference in New Issue
Block a user