Update report_new_matches.ps1
This commit is contained in:
parent
f505eb9268
commit
3e6a1f4ed1
1 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
. .\..\includes\ps1\lockfile.ps1
|
||||||
|
|
||||||
|
new-lock
|
||||||
|
|
||||||
if ($PSScriptRoot.length -eq 0) {
|
if ($PSScriptRoot.length -eq 0) {
|
||||||
$scriptroot = Get-Location
|
$scriptroot = Get-Location
|
||||||
|
|
@ -151,3 +154,5 @@ $newJson = $player_matches | ConvertTo-Json -Depth 100
|
||||||
|
|
||||||
# Display the updated JSON
|
# Display the updated JSON
|
||||||
$newJson | out-file "$scriptroot/../data/player_matches.json"
|
$newJson | out-file "$scriptroot/../data/player_matches.json"
|
||||||
|
|
||||||
|
remove-lock
|
||||||
Loading…
Add table
Add a link
Reference in a new issue