Some fixes.

This commit is contained in:
2024-12-16 09:06:00 +03:00
parent 35034f56c9
commit bb04d7ad1b

View File

@@ -1,4 +1,4 @@
# wDayzManager v0.3
# wDayzManager v0.4
# Copyright (c) 2024 Vladislav Salikov aka W0LF aka 'dreamforce'
# https://github.com/dreamforceinc
# Required module: PSIni
@@ -11,10 +11,14 @@ param (
)
[bool]$update = $param
######################################################################### [ CONFIG ] ##########################################################################
[bool]$noDelete = $false # For tests - don't delete logs
###############################################################################################################################################################
################################################################ [ !!! DON'T EDIT BELOW !!! ] #################################################################
[string]$myName = "wDayzManager"
[string]$myVersion = "v0.4"
[string]$steamScript = $myName + ".txt"
[string]$iniFile = $myName + ".ini"
if (-not (Test-Path -Path $iniFile)) {
@@ -85,7 +89,7 @@ $date = Get-Date
[int]$currentHour = ([datetime]$date).Hour
$date2 = Get-Date -Format 's' | ForEach-Object { $_ -replace 'T', ' ' }
Write-Host "$($date2) Starting wDayzManager script"
Write-Host "$($date2) Starting $($myName) $($myVersion) script"
Write-Host "update = $($update), noDelete = $($noDelete)"
$ini = $config = $servers = $clientMods = $serverMods = $steamProcess = $null