test(updates): rewrite of update system
This commit is contained in:
14
server/scripts/update.ps1
Normal file
14
server/scripts/update.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
$serverDataFile = "..\services\server\utils\serverData.json"
|
||||
|
||||
|
||||
$jsonContent = Get-Content -Path $serverDataFile -Raw
|
||||
|
||||
# Convert the JSON content to a PowerShell object
|
||||
$jsonObject = $jsonContent | ConvertFrom-Json
|
||||
|
||||
# Access the data in the JSON object
|
||||
$servers = $jsonObject.servers
|
||||
|
||||
|
||||
|
||||
Write-Host $servers
|
||||
Reference in New Issue
Block a user