From 8ccd7ba5fe473fe6323e7b145de8db0d2140cf07 Mon Sep 17 00:00:00 2001 From: giteaMyFirstvdsRoot Date: Tue, 1 Sep 2026 18:43:24 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=87=D0=B5=D1=81=D1=82=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0,=20?= =?UTF-8?q?=D1=87=D1=82=D0=BE=20Claude=20=D1=80=D0=B5=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4=D0=BD=D1=8F=D0=BB=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.sh b/setup.sh index 1d3f39a..01832e2 100644 --- a/setup.sh +++ b/setup.sh @@ -203,6 +203,12 @@ restart_claude() { fi fi open -a "Claude" >/dev/null 2>&1 || { warn "Не смог открыть Claude, открой вручную."; return 0; } + # Проверяем, что процесс реально поднялся: рапортовать успех вслепую нельзя. + j=0; while ! pgrep -x "Claude" >/dev/null 2>&1 && [ "$j" -lt 8 ]; do sleep 1; j=$((j+1)); done + if ! pgrep -x "Claude" >/dev/null 2>&1; then + warn "Claude не поднялся автоматически. Конфиги на месте, открой приложение вручную." + return 0 + fi else powershell.exe -NoProfile -Command ' Get-Process -Name "Claude*" -ErrorAction SilentlyContinue | Stop-Process -Force