Commit 345847925e36d7a052a8fac98ff1a4484982a572
1 parent
a712ee3c4d
Exists in
master
and in
4 other branches
Only show message on error
Showing 1 changed file with 1 additions and 3 deletions
delete.sh
View file @
3458479
... | ... | @@ -12,9 +12,7 @@ |
12 | 12 | |
13 | 13 | # Check that containers were removed succesfully |
14 | 14 | res=`docker ps -a | grep "/curex-local/kea_" | wc -l` |
15 | -if [ $res -eq 0 ]; then | |
16 | - echo "All KEA docker containers have been stopped and removed." | |
17 | -else | |
15 | +if [ $res -ne 0 ]; then | |
18 | 16 | echo "ERROR: Some KEA containers have not been removed." |
19 | 17 | docker ps -a |
20 | 18 | exit 1 |