Fix exit status if no old images have been removed

This commit is contained in:
Christoph Haas 2020-09-20 00:07:44 +02:00
parent 8e8cbe1717
commit 8c3ba3c99a
1 changed files with 1 additions and 1 deletions

View File

@ -25,4 +25,4 @@ docker tag bitbetter/identity bitbetter/identity:$BW_VERSION
# Remove old instances of the image after a successful build.
ids=$( docker images bitbetter/* | grep -E -v -- "CREATED|latest|${BW_VERSION}" | awk '{ print $3 }' )
[ -n "$ids" ] && docker rmi $ids
[ -n "$ids" ] && docker rmi $ids || true