fix freezing on tests and best strategy choosing (#7853)

This commit is contained in:
FlowersOfMind
2025-12-28 05:07:44 +03:00
committed by GitHub
parent 8a1885d7d0
commit e20eecd37c
2 changed files with 71 additions and 13 deletions

View File

@@ -822,10 +822,10 @@ goto menu
chcp 65001 >nul
cls
:: Require PowerShell 2.0+
powershell -NoProfile -Command "if ($PSVersionTable -and $PSVersionTable.PSVersion -and $PSVersionTable.PSVersion.Major -ge 2) { exit 0 } else { exit 1 }" >nul 2>&1
:: Require PowerShell 3.0+
powershell -NoProfile -Command "if ($PSVersionTable -and $PSVersionTable.PSVersion -and $PSVersionTable.PSVersion.Major -ge 3) { exit 0 } else { exit 1 }" >nul 2>&1
if %errorLevel% neq 0 (
echo PowerShell 2.0 or newer is required.
echo PowerShell 3.0 or newer is required.
echo Please upgrade PowerShell and rerun this script.
echo.
pause