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

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)"
}