From 80a1ad59cf25f1be0e2d4ee3da2ca16771823a72 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 28 Dec 2024 22:13:11 -0300 Subject: [PATCH] fixing docker update issues haha --- docker-updater.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docker-updater.sh b/docker-updater.sh index fbf4ee6..be11e25 100644 --- a/docker-updater.sh +++ b/docker-updater.sh @@ -71,16 +71,15 @@ for folder in */; do echo -e "${LIGHT_BLUE}[$folder] Stopping Docker containers" docker compose down > /dev/null else - echo -e "${LIGHT_BLUE}[$folder] No Docker containers running" + echo -e "${LIGHT_BLUE}[$folder] No Docker containers running, will skip update" + continue fi echo -e "${LIGHT_BLUE}[$folder] Updating images" docker compose pull -q > /dev/null - if [ -n "$DOCKER_RUNNING" ]; then - echo -e "${LIGHT_BLUE}[$folder] Starting Docker containers" - docker compose up -d > /dev/null - fi + echo -e "${LIGHT_BLUE}[$folder] Starting Docker containers" + docker compose up -d > /dev/null echo -e "${LIGHT_GREEN}[$folder] Updated!"