fixing flag issue on exit code inspect for docker compose

pull/3/head
josebarn 7 years ago
parent 78d1b044e9
commit 11d21f3ecb

@ -6,7 +6,7 @@ docker-compose -p ci --file docker-compose.test.yml up --build
echo "Inspecting exited containers:" echo "Inspecting exited containers:"
docker-compose -p ci --file docker-compose.test.yml ps docker-compose -p ci --file docker-compose.test.yml ps
docker-compose -p ci --file docker-compose.test.yml ps -q | xargs docker inspect -p ci -f '{{ .State.ExitCode }}' | while read code; do docker-compose -p ci --file docker-compose.test.yml ps -q | xargs docker inspect -f '{{ .State.ExitCode }}' | while read code; do
echo "Exit code is currently $code" echo "Exit code is currently $code"
if [ "$code" != "0" ]; then if [ "$code" != "0" ]; then
exit $code exit $code

Loading…
Cancel
Save