lock improvement

This commit is contained in:
Thijs Stobbelaar 2023-11-22 08:49:35 +01:00
parent eac7a886f5
commit e5334c6344
5 changed files with 14 additions and 19 deletions

View file

@ -1,3 +1,5 @@
Start-Transcript -Path '/var/log/dtch/get_matches.log' -Append
if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location
}
@ -90,4 +92,5 @@ $playermatches += [PSCustomObject]@{
$player_matches | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_matches.json"
remove-lock
remove-lock
Stop-Transcript