commit
8916110dcc
3 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
function new-lock {
|
function new-lock {
|
||||||
|
Write-Output 'Setting lock'
|
||||||
if ($env:temp) {
|
if ($env:temp) {
|
||||||
$lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock'
|
$lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock'
|
||||||
}
|
}
|
||||||
|
|
@ -10,12 +11,9 @@ function new-lock {
|
||||||
Exit
|
Exit
|
||||||
}
|
}
|
||||||
New-Item -ItemType File -Path $lockFile | Out-Null
|
New-Item -ItemType File -Path $lockFile | Out-Null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
function remove-lock {
|
function remove-lock {
|
||||||
|
Write-Output 'Removing lock'
|
||||||
if ($env:temp) {
|
if ($env:temp) {
|
||||||
$lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock'
|
$lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append
|
Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append
|
||||||
|
Write-Output 'Running from'
|
||||||
. .\..\includes\ps1\lockfile.ps1
|
. .\..\includes\ps1\lockfile.ps1
|
||||||
|
|
||||||
new-lock
|
new-lock
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append
|
Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append
|
||||||
|
Write-Output 'Running from'
|
||||||
|
Get-Location
|
||||||
. .\..\includes\ps1\lockfile.ps1
|
. .\..\includes\ps1\lockfile.ps1
|
||||||
|
|
||||||
new-lock
|
new-lock
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue