From 0da24ad22417f858a746d45ddb2668810a29a8b2 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:38 -0700 Subject: [PATCH] Switch the content from array to string. (#16057) 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 dbfa55039d417..c0590e2c9efce 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