Skip to content

Commit 9ab992e

Browse files
committed
Ensure we delete hidden files too
1 parent 458c038 commit 9ab992e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

_InitializeRepository.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ Begin
3535
Remove-Item -Force
3636

3737
# Delete all empty directories that were left behind.
38-
Get-ChildItem -Path $RepositoryRoot -Recurse -Directory |
38+
Get-ChildItem -Path $RepositoryRoot -Recurse -Force -Directory |
3939
Sort-Object -Property FullName -Descending | # Delete child directories before parent directories.
40-
Where-Object {
41-
$_.GetFileSystemInfos().Count -eq 0
42-
} |
40+
Where-Object { $_.GetFileSystemInfos().Count -eq 0 } |
4341
Remove-Item -Force
4442
}
4543

0 commit comments

Comments
 (0)