aboutsummaryrefslogtreecommitdiffstats
path: root/deployments
diff options
context:
space:
mode:
Diffstat (limited to 'deployments')
-rwxr-xr-xdeployments/build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/deployments/build.sh b/deployments/build.sh
index 90da6f95..c6d4a244 100755
--- a/deployments/build.sh
+++ b/deployments/build.sh
@@ -35,7 +35,9 @@ function _cleanup {
echo "Cleaning previous execution"
docker-compose kill
image=$(grep "image.*k8plugin" docker-compose.yml)
- docker images ${image#*:} -q | xargs docker rmi -f
+ if [[ -n ${image} ]]; then
+ docker images ${image#*:} -q | xargs docker rmi -f
+ fi
docker ps -a --filter "status=exited" -q | xargs docker rm
}