Skip to content

Commit 2dce972

Browse files
committed
styling change
1 parent 5c7785a commit 2dce972

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.build/scripts/Write-PSModuleDocs.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)