discord locks fix
This commit is contained in:
parent
98232ed7ef
commit
94eeb39e50
2 changed files with 4 additions and 9 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue