windows-terminal/tools/CheckPSVersion.ps1

4 lines
170 B
PowerShell

if($PSVersionTable.PSVersion.Major -lt 7){
Write-Error "Incorrect version of PowerShell installed.`nMake sure you have at least PowerShell Core 7.0.0."
Exit 1
}