Fixed calling PS script with two args.

This commit is contained in:
2024-12-26 14:39:26 +03:00
parent 046b156396
commit d7e02e4afb
2 changed files with 8 additions and 2 deletions

View File

@@ -23,6 +23,12 @@ Param (
[string]$myName = "wDayzManager"
[string]$myVersion = "v0.7"
if (($init -eq $true) -or ($update -eq $true)) {
Write-Error "Only one parameter is accepted - either 'Init' or 'Update'."
Exit
}
[string]$steamScript = $myName + ".txt"
[string]$iniFile = $myName + ".ini"
if (-not (Test-Path -Path $iniFile)) {