diff options
| -rw-r--r-- | scripts/get.ps1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 92db7c666..ec02f7216 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -12,6 +12,10 @@ Function myExit($code){ } } +if($PSVersionTable.PSVersion.Major -lt 5){ + Write-Host 'Sorry but PowerShell v5+ is required' + throw 'PowerShell''s version too low' +} $temppath=($env:TMP,$env:TEMP,'.' -ne $null)[0] $outfile=$temppath+"\$pid-xmake-installer.exe" try{ |
