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!"