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
|
$gitInstalled = $false
|
||||||
try {
|
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 }
|
if ($list -match 'Git\s+Git') { $gitInstalled = $true }
|
||||||
} catch { }
|
} catch { }
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Write-Ok "Processo concluído."
|
Write-Ok "Processo concluído."
|
||||||
exit 0
|
Stop-Process -Id $PID -Force
|
||||||
|
|
||||||
} catch {
|
} catch {
|
||||||
Write-Err ("Erro: " + $_.Exception.Message)
|
Write-Err ("Erro: " + $_.Exception.Message)
|
||||||
|
|||||||
Reference in New Issue
Block a user