Handle errors when building the Docker containers correctly.

master
Pacman Ghost 4 years ago
parent 988966531f
commit 3c50539568
  1. 3
      run-containers.sh

@ -147,7 +147,7 @@ if [ -z "$NO_BUILD" ]; then
echo Building the \"$TAG\" containers...
docker-compose build --build-arg ENABLE_TESTS=$ENABLE_TESTS 2>&1 \
| sed -e 's/^/ /'
if [ $? -ne 0 ]; then exit 10 ; fi
if [ ${PIPESTATUS[0]} -ne 0 ]; then exit 10 ; fi
echo
fi
@ -158,3 +158,4 @@ if [ -n "$ENABLE_TESTS" ]; then
fi
docker-compose up --detach 2>&1 \
| sed -e 's/^/ /'
exit ${PIPESTATUS[0]}

Loading…
Cancel
Save