Switch the content from array to string. (#803)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
This commit is contained in:
parent
a1385518a2
commit
7ccb5f0420
@ -205,7 +205,7 @@ function Upload-Blobs
|
||||
if ($ReleaseTag) {
|
||||
foreach ($htmlFile in (Get-ChildItem $DocDir -include *.html -r))
|
||||
{
|
||||
$fileContent = Get-Content -Path $htmlFile
|
||||
$fileContent = Get-Content -Path $htmlFile -Raw
|
||||
$updatedFileContent = $fileContent -replace $RepoReplaceRegex, "`${1}$ReleaseTag"
|
||||
if ($updatedFileContent -ne $fileContent) {
|
||||
Set-Content -Path $htmlFile -Value $updatedFileContent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user