We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
deadlydog
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6b21f0a commit b648116Copy full SHA for b648116
src/ScriptModuleRepositoryTemplate/ScriptModuleRepositoryTemplate.psm1
@@ -78,8 +78,10 @@ function CopyTemplateFilesToRepositoryRoot([string] $repositoryDirectoryPath)
78
$repoDotFiles = Get-ChildItem -Path $repositoryDirectoryPath -Recurse -Force -Filter '_.*'
79
$repoDotFiles | ForEach-Object {
80
[string] $filePath = $_.FullName
81
+ [string] $parentDirectory = Split-Path -Path $filePath -Parent
82
[string] $newFileName = $_.Name -replace '^_\.', '.'
- Rename-Item -Path $filePath -NewName $newFileName -Force
83
+ [string] $newFilePath = Join-Path -Path $parentDirectory -ChildPath $newFileName
84
+ Move-Item -Path $filePath -Destination $newFilePath -Force
85
}
86
87
0 commit comments