File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function Write-PSModuleDocs {
3636 throw " Module directory not found at: '$outputModulePath ', run 'make build' to build the module."
3737 }
3838
39- $versionFolder = Get-ChildItem - Path $outputModulePath - Directory | Sort-Object Name - Descending | Select-Object - First 1
39+ $versionFolder = Get-ChildItem - Path $outputModulePath - Directory | sort Name - Descending | select - First 1
4040
4141 if (-not $versionFolder ) {
4242 throw " No version folder found in '$outputModulePath ', run 'make build' to build the module."
@@ -213,11 +213,11 @@ function Write-PSModuleDocs {
213213 Get-ChildItem - Path $docsPath - File | Remove-Item - Force
214214 }
215215 else {
216- $null = New-Item - Path $docsPath - ItemType Directory - Force
216+ New-Item - Path $docsPath - ItemType Directory - Force > $null
217217 }
218218
219219 if ($docs.Count -eq 0 ) {
220- $null = New-Item - Path " $docsPath \.gitkeep" - ItemType File - Force
220+ New-Item - Path " $docsPath \.gitkeep" - ItemType File - Force > $null
221221 Write-Verbose ' No documentation generated; created .gitkeep in docs folder.'
222222 return
223223 }
You can’t perform that action at this time.
0 commit comments