discord locks fix

This commit is contained in:
Lanta 2023-11-13 10:29:36 +01:00
parent 34242cc9cd
commit dc2652fc61
2 changed files with 4 additions and 9 deletions

View file

@ -1,13 +1,11 @@
. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) { if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location $scriptroot = Get-Location
} }
else { else {
$scriptroot = $PSScriptRoot $scriptroot = $PSScriptRoot
} }
. $scriptroot\..\includes\ps1\lockfile.ps1
new-lock
$fileContent = Get-Content -Path "$scriptroot/../config/config.php" -Raw $fileContent = Get-Content -Path "$scriptroot/../config/config.php" -Raw

View file

@ -1,14 +1,11 @@
. .\..\includes\ps1\lockfile.ps1
new-lock
if ($PSScriptRoot.length -eq 0) { if ($PSScriptRoot.length -eq 0) {
$scriptroot = Get-Location $scriptroot = Get-Location
} }
else { else {
$scriptroot = $PSScriptRoot $scriptroot = $PSScriptRoot
} }
. $scriptroot\..\includes\ps1\lockfile.ps1
new-lock
function IsValidEntry($entry) { function IsValidEntry($entry) {
return ($entry.KD_H -ne 'NaN' -and $entry.KD_ALL -ne 'NaN') -and return ($entry.KD_H -ne 'NaN' -and $entry.KD_ALL -ne 'NaN') -and
($entry.KD_H -ne 'Infinity' -and $entry.KD_ALL -ne 'Infinity') ($entry.KD_H -ne 'Infinity' -and $entry.KD_ALL -ne 'Infinity')