Correção para verificação do git e saída da janela do powershell
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user