diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-11-15 17:49:26 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-11-15 17:58:22 +0000 |
commit | 9e8a07be904d7917d943904afae5cc11363f9ad0 (patch) | |
tree | e25f6428a0ae3463c8d6c75d771d90d4b73ea2ed /tcwg-update-host-containers.sh | |
parent | ce694db9fb90407fe4ef1a38f0c2cc799defd48d (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-x | tcwg-update-host-containers.sh | 2 |
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 |