lock file feature

This commit is contained in:
Lanta 2023-09-30 10:07:39 +02:00
parent 01b45aaab8
commit 21f4f9dcab
5 changed files with 50 additions and 6 deletions

View file

@ -1,4 +1,6 @@

. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location
}
@ -122,4 +124,5 @@ $lifetimestats['updated'] = $formattedString
# Output the formatted string
$lifetimestats | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_lifetime_data.json"
$lifetimestats | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_lifetime_data.json"
remove-lock