From 41dbbcc16f185b1c1f8aa7dafdd8324ae70a67b4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 19 Oct 2020 10:26:36 -0700 Subject: [PATCH] Switch the content from array to string. (#11896) Co-authored-by: Sima Zhu --- 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 dbfa55039d41..c0590e2c9efc 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