From 57a317963c4d5a7fe1259a6043f84ca9703a779f Mon Sep 17 00:00:00 2001 From: 3djc Date: Sun, 19 May 2019 09:28:20 +0200 Subject: [PATCH] Make nightlies process more robust --- tools/nightly23/build-nightly.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/nightly23/build-nightly.sh b/tools/nightly23/build-nightly.sh index f1c7a93ab..c06a00f0f 100755 --- a/tools/nightly23/build-nightly.sh +++ b/tools/nightly23/build-nightly.sh @@ -26,10 +26,8 @@ echo "Call sdcard generation" code/tools/nightly23/build-sdcard.sh echo "Delete companion container in case of previous failed atempt" -RUNNING=$(docker inspect --format="{{ .State.Running }}" companion 2> /dev/null) - -if [ $? -ne 1 ]; then - docker rm --force companion +if [ "$(docker ps -aq -f name=companion)" ]; then + docker rm companion fi echo "Build firmware stamps"