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
|
khdb.txt.zip
|
||||||
ElysiumSettings.txt
|
ElysiumSettings.txt
|
||||||
/Reports
|
/Reports
|
||||||
|
/khdb-shards
|
||||||
|
|||||||
@@ -963,7 +963,7 @@ if ($UploadOnly) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6
|
$manifestObject = (Get-Content -LiteralPath $manifestPath -Encoding UTF8 -Raw) | ConvertFrom-Json
|
||||||
} catch {
|
} catch {
|
||||||
throw "Failed to parse manifest '$manifestPath': $($_.Exception.Message)"
|
throw "Failed to parse manifest '$manifestPath': $($_.Exception.Message)"
|
||||||
}
|
}
|
||||||
@@ -1032,7 +1032,7 @@ if ($UploadOnly) {
|
|||||||
}
|
}
|
||||||
if (Test-Path -LiteralPath $resolvedCheckpointPath) {
|
if (Test-Path -LiteralPath $resolvedCheckpointPath) {
|
||||||
try {
|
try {
|
||||||
$resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json -Depth 6
|
$resumeState = (Get-Content -LiteralPath $resolvedCheckpointPath -Encoding UTF8 -Raw) | ConvertFrom-Json
|
||||||
} catch {
|
} catch {
|
||||||
throw "Failed to parse checkpoint '$resolvedCheckpointPath': $($_.Exception.Message)"
|
throw "Failed to parse checkpoint '$resolvedCheckpointPath': $($_.Exception.Message)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ function Combine-StoragePath {
|
|||||||
function Load-Manifest {
|
function Load-Manifest {
|
||||||
param([string]$Path)
|
param([string]$Path)
|
||||||
$raw = Get-Content -LiteralPath $Path -Encoding UTF8 -Raw
|
$raw = Get-Content -LiteralPath $Path -Encoding UTF8 -Raw
|
||||||
return $raw | ConvertFrom-Json -Depth 8
|
return $raw | ConvertFrom-Json
|
||||||
}
|
}
|
||||||
|
|
||||||
function Validate-Manifest {
|
function Validate-Manifest {
|
||||||
|
|||||||
Reference in New Issue
Block a user