Skip to content

Commit 973ee5d

Browse files
committed
fix: Do not delete directories by accident
1 parent aa28680 commit 973ee5d

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 |
28+
Get-ChildItem -Path $RepositoryRoot -Recurse -File |
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)