From d86caa902f7cfe7753ae9bc2ca9db32c3d7ed831 Mon Sep 17 00:00:00 2001 From: Nose Date: Sun, 11 Jan 2026 11:30:27 -0800 Subject: [PATCH] f --- scripts/bootstrap.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index b2f8ad5..721608c 100644 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -1131,7 +1131,13 @@ if (Test-Path (Join-Path $repo ".git")) { } if (-not $skip) { Write-Host "Checking for updates..." -ForegroundColor Gray - git -C "$repo" pull --ff-only --quiet + $update = git -C "$repo" pull --ff-only 2>&1 + if ($update -like "*Updating*" -or $update -like "*Fast-forward*") { + Clear-Host + Write-Host "Medeia-Macina has been updated. Please restart the application to apply changes." -ForegroundColor Cyan + exit 0 + } + Clear-Host } } } catch {} @@ -1193,7 +1199,13 @@ if (Test-Path (Join-Path $repo 'CLI.py')) { " )\n" " if \"!AUTO_UPDATE!\" == \"true\" (\n" " echo Checking for updates...\n" - " git -C \"!REPO!\" pull --ff-only --quiet\n" + " git -C \"!REPO!\" pull --ff-only | findstr /i /c:\"Updating\" /c:\"Fast-forward\" >nul 2>&1\n" + " if !errorlevel! == 0 (\n" + " cls\n" + " echo Medeia-Macina has been updated. Please restart the application to apply changes.\n" + " exit /b 0\n" + " )\n" + " cls\n" " )\n" " )\n" ")\n" @@ -1369,7 +1381,13 @@ if (Test-Path (Join-Path $repo 'CLI.py')) { ' fi\n' ' if [ "$AUTO_UPDATE" = "true" ]; then\n' ' echo "Checking for updates..."\n' - ' git -C "$REPO" pull --ff-only --quiet || true\n' + ' UPDATE_OUT=$(git -C "$REPO" pull --ff-only 2>&1)\n' + ' if echo "$UPDATE_OUT" | grep -qiE \'Updating|Fast-forward\'; then\n' + ' clear\n' + ' echo "Medeia-Macina has been updated. Please restart the application to apply changes."\n' + ' exit 0\n' + ' fi\n' + ' clear\n' ' fi\n' "fi\n" "\n"