From 2d45e8d137572e3acade5702b3842ff8db9390e1 Mon Sep 17 00:00:00 2001 From: Sima Zhu Date: Fri, 16 Oct 2020 18:05:06 -0700 Subject: [PATCH] Switch the content from array to string. --- eng/common/scripts/copy-docs-to-blobstorage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/copy-docs-to-blobstorage.ps1 b/eng/common/scripts/copy-docs-to-blobstorage.ps1 index dbfa55039d4..c0590e2c9ef 100644 --- a/eng/common/scripts/copy-docs-to-blobstorage.ps1 +++ b/eng/common/scripts/copy-docs-to-blobstorage.ps1 @@ -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