diff --git a/pilot_installer_utilities.ps1 b/pilot_installer_utilities.ps1 index 8c4b26d..c057fd0 100644 --- a/pilot_installer_utilities.ps1 +++ b/pilot_installer_utilities.ps1 @@ -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)