Skip to content

Commit 48141cd

Browse files
committed
fix: Use proper directory to find the TemplateRepoFiles
1 parent 13fdc01 commit 48141cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ function Copy-TemplateFilesToRepositoryRoot([string] $repositoryDirectoryPath)
4141
{
4242
if (-not (Test-Path -Path $repositoryDirectoryPath -PathType Container))
4343
{
44+
Write-Verbose "Creating the repository directory '$repositoryDirectoryPath'."
4445
New-Item -Path $repositoryDirectoryPath -ItemType Directory > $null
4546
}
4647

47-
[string] $templateModuleDirectoryPath = "$repositoryDirectoryPath\src\Template.PowerShell.ScriptModule\TemplateRepoFiles"
48+
[string] $templateModuleDirectoryPath = "$PSScriptRoot\TemplateRepoFiles"
4849
if (Test-Path -Path $templateModuleDirectoryPath -PathType Container)
4950
{
5051
Copy-Item -Path $templateModuleDirectoryPath\* -Destination $repositoryDirectoryPath -Recurse -Force

0 commit comments

Comments
 (0)