diff --git a/eng/common/scripts/get-markdown-files-from-changed-files.ps1 b/eng/common/scripts/get-markdown-files-from-changed-files.ps1 index 26c1b8d6d291..8f08a5b02bd1 100644 --- a/eng/common/scripts/get-markdown-files-from-changed-files.ps1 +++ b/eng/common/scripts/get-markdown-files-from-changed-files.ps1 @@ -25,7 +25,7 @@ $changedMarkdowns = $changedMarkdowns | Where-Object { $deletedFiles -notcontain $markdownContainLinks = @() $allMarkdownFiles = Get-ChildItem -Path $RootRepo -Recurse -Include *.md foreach ($f in $allMarkdownFiles) { - $filePath = $f.ToString() + $filePath = $f.FullName $content = Get-Content -Path $filePath -Raw foreach ($l in $relativePathLinks) { if ($content -match $l) {