Make nightlies process more robust

This commit is contained in:
3djc
2019-05-19 09:28:37 +02:00
parent afbdcf86e4
commit 57a317963c
+2 -4
View File
@@ -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"