Fix exit status if no old images have been removed
This commit is contained in:
parent
8e8cbe1717
commit
8c3ba3c99a
2
build.sh
2
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue