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

@@ -24,8 +24,8 @@ if not exist "Logs\" mkdir "Logs"
set init=0
set update=0
for %%a in (%*) do if /i "%%~a" equ "/I" set init=1
for %%a in (%*) do if /i "%%~a" equ "/U" set update=1
if /i %1 equ "/I" set init=1
if /i %1 equ "/U" set update=1
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 -Init %init% -Update %update%
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 -Init %init% -Update %update% > Logs\%filename%