Fix PS 5.1 -Depth handling

This commit is contained in:
2025-11-07 16:27:00 +01:00
parent 4b1b841383
commit 5a64558bb9
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ khdb.txt
khdb.txt.zip
ElysiumSettings.txt
/Reports
/khdb-shards

View File

@@ -963,7 +963,7 @@ if ($UploadOnly) {
}
try {
$manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6
$manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json
} catch {
throw "Failed to parse manifest '$manifestPath': $($_.Exception.Message)"
}
@@ -1032,7 +1032,7 @@ if ($UploadOnly) {
}
if (Test-Path -LiteralPath $resolvedCheckpointPath) {
try {
$resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6
$resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json
} catch {
throw "Failed to parse checkpoint '$resolvedCheckpointPath': $($_.Exception.Message)"
}

View File

@@ -392,7 +392,7 @@ function Combine-StoragePath {
function Load-Manifest {
param([string]$Path)
$raw = Get-Content -LiteralPath $Path -Encoding UTF8 -Raw
return $raw | ConvertFrom-Json -Depth 8
return $raw | ConvertFrom-Json
}
function Validate-Manifest {