lock file feature
This commit is contained in:
parent
6dffd64ddb
commit
f505eb9268
5 changed files with 50 additions and 6 deletions
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
. .\..\includes\ps1\lockfile.ps1
|
||||
|
||||
new-lock
|
||||
if($PSScriptRoot.length -eq 0){
|
||||
$scriptroot = Get-Location
|
||||
}else{
|
||||
|
|
@ -45,4 +47,5 @@ $formattedString = "$currentDateTime - Time Zone: $currentTimezone"
|
|||
$clandata | Add-Member -Name "updated" -MemberType NoteProperty -Value $formattedString
|
||||
$clandata | convertto-json -Depth 100 | out-file "$scriptroot/../data/claninfo.json"
|
||||
|
||||
$clandata | convertto-json -Depth 100
|
||||
$clandata | convertto-json -Depth 100
|
||||
remove-lock
|
||||
Loading…
Add table
Add a link
Reference in a new issue