Fix PS 5.1 -Depth handling
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ khdb.txt
|
||||
khdb.txt.zip
|
||||
ElysiumSettings.txt
|
||||
/Reports
|
||||
/khdb-shards
|
||||
|
||||
@@ -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)"
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user