From 28708b02c9f79abc3f70a1425c69f6392dcdb092 Mon Sep 17 00:00:00 2001 From: IvanMeln1k Date: Fri, 4 Dec 2026 14:49:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=A04:=20=D0=BF=D0=BE=D0=B2=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D1=82=D1=8C=20=D0=B2=D0=BE=D1=81=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=81?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=BD=D0=B4=D0=B0=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20clean-clo?= =?UTF-8?q?ne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/clean-clone-check.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/clean-clone-check.sh b/scripts/clean-clone-check.sh index 21c82958..c7608bd5 100755 --- a/scripts/clean-clone-check.sh +++ b/scripts/clean-clone-check.sh @@ -49,7 +49,16 @@ cleanup() { ( cd "$root" unset COMPOSE_PROJECT_NAME LB_PORT IMAGE BASE_URL API_IMAGE - make up >/dev/null 2>&1 && ./scripts/wait-ready.sh >/dev/null 2>&1 || true + attempt=0 + while [ "$attempt" -lt 3 ]; do + if make up >/dev/null 2>&1 && ./scripts/wait-ready.sh >/dev/null 2>&1; then + echo "main stand restarted after the clean-clone check" + exit 0 + fi + attempt=$((attempt + 1)) + sleep 3 + done + echo "clean-clone-check: could not restart the main stand; run make up manually" >&2 ) fi exit "$status"