Fix: Installers now auto-update (git pull) to prevent stale directory errors

This commit is contained in:
Gemini AI
2025-12-14 01:00:42 +04:00
Unverified
parent 4d999fdc5c
commit edfb8628c2
2 changed files with 12 additions and 2 deletions

View File

@@ -19,7 +19,10 @@ $repoUrl = "https://github.com/roman-ryzenadvanced/OpenQode-Public-Alpha.git"
$targetDir = "OpenQode"
if (Test-Path $targetDir) {
Write-Host "Directory '$targetDir' already exists. Entering directory..." -ForegroundColor Yellow
Write-Host "Directory '$targetDir' already exists. Updating..." -ForegroundColor Yellow
Push-Location $targetDir
git pull
Pop-Location
} else {
Write-Host "Cloning repository..." -ForegroundColor Yellow
git clone $repoUrl $targetDir