diff --git a/includes/ps1/lockfile.ps1 b/includes/ps1/lockfile.ps1 index 0e53033..55a3637 100644 --- a/includes/ps1/lockfile.ps1 +++ b/includes/ps1/lockfile.ps1 @@ -1,4 +1,5 @@ function new-lock { + Write-Output 'Setting lock' if ($env:temp) { $lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock' } @@ -10,12 +11,9 @@ function new-lock { Exit } New-Item -ItemType File -Path $lockFile | Out-Null - - - - } function remove-lock { + Write-Output 'Removing lock' if ($env:temp) { $lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock' } diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 5c1efc4..3fcfb6b 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,4 +1,5 @@ Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append +Write-Output 'Running from' . .\..\includes\ps1\lockfile.ps1 new-lock diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index cc9c1e6..f7af516 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,5 +1,6 @@ Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append - +Write-Output 'Running from' +Get-Location . .\..\includes\ps1\lockfile.ps1 new-lock