Merge branch 'dev' of https://github.com/OpzekerIT/pubg into dev
This commit is contained in:
commit
65a96699e9
5 changed files with 64 additions and 31 deletions
|
|
@ -1,4 +1,8 @@
|
|||
if ($PSScriptRoot.length -eq 0) {
|
||||
Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append
|
||||
Write-Output 'Running from'
|
||||
(Get-Location).path
|
||||
|
||||
if ($PSScriptRoot.length -eq 0) {
|
||||
$scriptroot = Get-Location
|
||||
}
|
||||
else {
|
||||
|
|
@ -28,7 +32,7 @@ if ($fileContent -match "\`$clanmembers\s*=\s*array\(([^)]+)\)") {
|
|||
else {
|
||||
Write-Output "Clan members not found"
|
||||
}
|
||||
if ($clanMembersArray.count -ge 10 ) {
|
||||
if ($clanMembersArray.count -gt 10 ) {
|
||||
write-output "Currently not able to process more then 10 players"
|
||||
exit
|
||||
}
|
||||
|
|
@ -126,4 +130,6 @@ $lifetimestats['updated'] = $formattedString
|
|||
|
||||
|
||||
$lifetimestats | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_lifetime_data.json"
|
||||
remove-lock
|
||||
remove-lock
|
||||
$Error
|
||||
Stop-Transcript
|
||||
Loading…
Add table
Add a link
Reference in a new issue