remove key press for noninteractive mode fix #38

This commit is contained in:
zoicware
2025-11-10 12:55:46 -05:00
committed by GitHub
parent dd2e3e4eee
commit 3b67df711b

View File

@@ -2174,7 +2174,9 @@ if ($ogExecutionPolicy) {
Reg.exe add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell' /v 'ExecutionPolicy' /t REG_SZ /d $ogExecutionPolicy /f >$null
}
if (!$nonInteractive) {
Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green
$Host.UI.RawUI.ReadKey() *>$null
}
Write-Host 'Done! Press Any Key to Exit...' -ForegroundColor Green
$Host.UI.RawUI.ReadKey() *>$null
exit