diff --git a/create_manifest_file.ps1 b/create_manifest_file.ps1 index 8741fd490e..2fcf51bf32 100644 --- a/create_manifest_file.ps1 +++ b/create_manifest_file.ps1 @@ -69,7 +69,7 @@ $latestBlock = $ExecutionContext.InvokeCommand.ExpandString($latestBlock) | Conv # Adding new block to the top of the list of released versions. # TODO: To use the data from the current manifest file and update it. -$versionArray = '[]' | ConvertFrom-Json +$versionArray = @() $versionArray += $latestBlock # Removing the oldest version if total count exceeds the max permissible count @@ -80,5 +80,5 @@ if($versionArray.Length -gt $maxVersionCount){ # Updating the manifest file # Keeping Depth as 4, as by default ConvertTo-Json only support conversion till depth 2. -$versionArray | ConvertTo-Json -Depth 4 | Out-File $BuildOutputDir/dab-manifest.json +ConvertTo-Json -Depth 4 $versionArray | Out-File $BuildOutputDir/dab-manifest.json