summaryrefslogtreecommitdiff
path: root/tcwg-update-host-containers.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-11-15 17:49:26 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-11-15 17:58:22 +0000
commit9e8a07be904d7917d943904afae5cc11363f9ad0 (patch)
treee25f6428a0ae3463c8d6c75d771d90d4b73ea2ed /tcwg-update-host-containers.sh
parentce694db9fb90407fe4ef1a38f0c2cc799defd48d (diff)
tcwg-update-host-container.sh: Fix check for "host" container.
Turns out "host" is a valid object for "docker inspect" by itself, so the check returns OK even when there is no "host" container. Change-Id: Ie8fefc77ca9c6e1c040b119b2a0e20e630d4145d
Diffstat (limited to 'tcwg-update-host-containers.sh')
-rwxr-xr-xtcwg-update-host-containers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcwg-update-host-containers.sh b/tcwg-update-host-containers.sh
index 06bc285e..cb121249 100755
--- a/tcwg-update-host-containers.sh
+++ b/tcwg-update-host-containers.sh
@@ -18,7 +18,7 @@ image="linaro/ci-$(print_arch_for_host localhost)-tcwg-host-ubuntu:$distro"
docker pull "$image"
docker run --rm $image start.sh > start.sh
-if docker inspect $container >/dev/null 2>&1; then
+if docker stats --no-stream $container >/dev/null 2>&1; then
docker rm -vf $container
fi