Skip to content

Commit 94327c8

Browse files
authored
Update HelpIndex.ps1 (#24883)
1 parent eff8df2 commit 94327c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/Docs/HelpIndex.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ $HelpFolders += Get-ChildItem -Path "$ToolsRootPath/../src" -Recurse -Directory
8484
# Map the name of the cmdlet to the location of the help file
8585
$HelpFileMapping = @{}
8686
$HelpFolders | ForEach-Object {
87-
$helpFiles = Get-ChildItem -Path $_.FullName
87+
$helpFiles = Get-ChildItem -Path $_.FullName | Where-Object {-NOT ($_.Name -cmatch "README.md")}
8888
$helpFiles | ForEach-Object {
8989
if ($HelpFileMapping.Contains($_.Name)) {
90-
throw "Two files exist with the name $_ in $($_.FullName)"
90+
throw "Two files exist with the name $($_.Name) in $($_.FullName) and $($HelpFileMapping[$_.Name])"
9191
}
9292
else {
9393
$HelpFileMapping.Add("$($_.Name)", $_.FullName)

0 commit comments

Comments
 (0)