lock file feature
This commit is contained in:
parent
01b45aaab8
commit
21f4f9dcab
5 changed files with 50 additions and 6 deletions
|
|
@ -1,3 +1,6 @@
|
|||
. .\..\includes\ps1\lockfile.ps1
|
||||
|
||||
new-lock
|
||||
|
||||
if ($PSScriptRoot.length -eq 0) {
|
||||
$scriptroot = Get-Location
|
||||
|
|
@ -5,6 +8,9 @@ if ($PSScriptRoot.length -eq 0) {
|
|||
else {
|
||||
$scriptroot = $PSScriptRoot
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Read the content of the file as a single string
|
||||
$fileContent = Get-Content -Path "$scriptroot/../config/config.php" -Raw
|
||||
|
||||
|
|
@ -92,4 +98,6 @@ $playermatches += [PSCustomObject]@{
|
|||
updated = $formattedString
|
||||
}
|
||||
|
||||
$player_matches | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_matches.json"
|
||||
$player_matches | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_matches.json"
|
||||
|
||||
remove-lock
|
||||
Loading…
Add table
Add a link
Reference in a new issue