From 2bd57200d88251556ef5a094a24aed591d47dd76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20M=C3=BCller?= Date: Fri, 6 May 2022 18:14:38 +0200 Subject: [PATCH] Fix Set-ModuleReadMe when called w/ relative path --- utilities/tools/Set-ModuleReadMe.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') {