From 6b3d292823f17c3d1330c26889bbd0a7d8d78385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Sard=C3=A1?= Date: Thu, 21 Aug 2025 16:48:31 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20para=20verifica=C3=A7?= =?UTF-8?q?=C3=A3o=20do=20git=20e=20sa=C3=ADda=20da=20janela=20do=20powers?= =?UTF-8?q?hell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pilot_installer_utilities.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)