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