Update PS scripts to check PS version

This commit is contained in:
Tiago Conceição
2023-01-29 18:59:06 +00:00
parent 5f7dfe7ff5
commit e953d6262d
2 changed files with 10 additions and 0 deletions
@@ -1,4 +1,9 @@
# UVtools Script
if($PSVersionTable.PSVersion.Major -lt 7){
Write-Error("Powershell version $($PSVersionTable.PSVersion) is not compatible with this script.`n
You need at least the version 7.")
return;
}
########################
# Script Configuration #
########################
@@ -1,4 +1,9 @@
# UVtools Script
if($PSVersionTable.PSVersion.Major -lt 7){
Write-Error("Powershell version $($PSVersionTable.PSVersion) is not compatible with this script.`n
You need at least the version 7.")
return;
}
########################
# Script Configuration #
########################