Correção para verificação do git e saída da janela do powershell

This commit is contained in:
Ricardo Sardá
2025-08-21 16:48:31 -03:00
parent 32582b7b2b
commit 6b3d292823

View File

@@ -54,7 +54,7 @@ function Ensure-Git-WithWinget {
$gitInstalled = $false
try {
$list = winget list --id Git.Git -e 2>$null
$list = winget list --id Git.Git -e @argsCommon 2>$null
if ($list -match 'Git\s+Git') { $gitInstalled = $true }
} catch { }
@@ -159,7 +159,7 @@ try {
}
Write-Ok "Processo concluído."
exit 0
Stop-Process -Id $PID -Force
} catch {
Write-Err ("Erro: " + $_.Exception.Message)