Skip to content

Commit f4bd375

Browse files
committed
tweaks to catalog creation
1 parent 6d1681c commit f4bd375

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ param(
3939
[Parameter(ParameterSetName='BuildAll')]
4040
[switch] $Catalog
4141

42-
4342
)
4443

4544
BEGIN {
@@ -61,10 +60,16 @@ END {
6160
$setName = $PSCmdlet.ParameterSetName
6261
switch ( $setName ) {
6362
"BuildAll" {
64-
Start-ScriptAnalyzerBuild -All -Configuration $Configuration -Verbose:$verboseWanted
63+
$buildArgs = @{
64+
All = $true
65+
Configuration = $Configuration
66+
Verbose = $verboseWanted
67+
Catalog = $false
68+
}
6569
if ( $Catalog ) {
66-
$catalogFile = New-Catalog
70+
$buildArgs['Catalog'] = $true
6771
}
72+
Start-ScriptAnalyzerBuild @buildArgs # -All -Configuration $Configuration -Verbose:$verboseWanted
6873
}
6974
"BuildDocumentation" {
7075
Start-ScriptAnalyzerBuild -Documentation -Verbose:$Verbose

build.psm1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ function Start-ScriptAnalyzerBuild
186186
foreach($psVersion in 3..7) {
187187
Start-ScriptAnalyzerBuild -Configuration $Configuration -PSVersion $psVersion -Verbose:$verboseWanted
188188
}
189+
if ( $Catalog ) {
190+
New-Catalog -Location $script:destinationDir
191+
}
189192
return
190193
}
191194

@@ -321,8 +324,6 @@ function Start-ScriptAnalyzerBuild
321324
Copy-Item -path $nsoft -Destination $destinationDirBinaries
322325
}
323326

324-
New-Catalog -Location $script:destinationDir
325-
326327
Pop-Location
327328
}
328329
}

0 commit comments

Comments
 (0)