mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Update PS scripts to check PS version
This commit is contained in:
@@ -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 #
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user