diff --git a/utilities/tools/Set-ModuleReadMe.ps1 b/utilities/tools/Set-ModuleReadMe.ps1 index 2506d52d7c..3c1e46a9b9 100644 --- a/utilities/tools/Set-ModuleReadMe.ps1 +++ b/utilities/tools/Set-ModuleReadMe.ps1 @@ -486,8 +486,8 @@ function Set-ModuleReadMe { # Load external functions . (Join-Path $PSScriptRoot 'helper/Merge-FileWithNewContent.ps1') - # Check template - $null = Test-Path $TemplateFilePath -ErrorAction Stop + # Check template & make full path + $TemplateFilePath = Resolve-Path -Path $TemplateFilePath -ErrorAction Stop if (-not $TemplateFileContent) { if ((Split-Path -Path $TemplateFilePath -Extension) -eq '.bicep') {