Skip to content

Commit c0a2afa

Browse files
committed
fix: Get directories as well so we don't have empty directories left behind
1 parent 973ee5d commit c0a2afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_InitializeRepository.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Begin
2525

2626
function Remove-AllRepositoryFilesExceptTemplateModuleFiles
2727
{
28-
Get-ChildItem -Path $RepositoryRoot -Recurse -File |
28+
Get-ChildItem -Path $RepositoryRoot -Recurse |
2929
Where-Object {
3030
$_.FullName -notlike "$RepositoryRoot\.git\*" -and # Don't delete the .git directory.
3131
$_.FullName -notlike "$RepositoryRoot\_InitializeRepository.ps1" -and # Don't delete this script.

0 commit comments

Comments
 (0)