Skip to content
Snippets Groups Projects
Commit 69567495 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

L2SS-218 Disable exit on error in clean_images

This allows make to return with a non-0 code which in turn does
not force Bash to exit.  This happens when the containers where
already down and/or the volumes cleaned up.
parent 59ca7cb0
No related branches found
No related tags found
1 merge request!33Resolve L2SS-218 "Move existing tooling to bootstrap dir"
This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
...@@ -48,8 +48,14 @@ function stop_images() ...@@ -48,8 +48,14 @@ function stop_images()
function clean_images() function clean_images()
{ {
# This can return a non-0 return code if the system
# has already been shut down.
# Therefore disable Bash's exit on error flag
set +e
pushd ${HOME_DIR}/docker-compose && make clean pushd ${HOME_DIR}/docker-compose && make clean
popd popd
# And enable it again.
set -e
} }
function start_minimal_tango() function start_minimal_tango()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment