Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryEarly committed Oct 9, 2024
1 parent b1f7267 commit 799d907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/BuildScripts/AdaptAutorestModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ try{
Get-ChildItem $subModuleHelpPath -Filter *-*.md | Copy-Item -Destination (Join-Path $helpPath $_.Name) -Force
Write-Host "Refreshing help markdown files under: $helpPath ..."
Update-MarkdownHelpModule -Path $helpPath -RefreshModulePage -AlphabeticParamsOrder -UseFullTypeName -ExcludeDontShow
foreach ($helpFile in (Get-ChildItem $helpPath -Recurse)) {
foreach ($helpFile in (Get-ChildItem $helpPath -Filter "*-*.md" -Recurse)) {
$cmdeltName = $helpFile.Name.Replace(".md", "")
if ($exportedCommands -notcontains $cmdeltName)
{
Write-Host "Redundant help markdown detected, removing $helpFile.FullName ..."
Write-Host "Redundant help markdown detected, removing $helpFile ..."
Remove-Item $helpFile.FullName -Force
}
}
Expand Down

0 comments on commit 799d907

Please sign in to comment.