File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,10 @@ function GetBuildInfo {
1111 $BuildCommandInvocation
1212 )
1313
14- $BuildInfo = if ($BuildManifest -and (Test-Path $BuildManifest )) {
15- if ((Split-path - Leaf $BuildManifest ) -eq ' build.psd1' ) {
16- # Read the Module Manifest configuration file for default parameter values
17- Write-Debug " Load Build Manifest $BuildManifest "
18- Import-Metadata - Path $BuildManifest
19- } else {
20- Write-Debug " Use SourcePath $BuildManifest "
21- @ { SourcePath = $BuildManifest }
22- }
14+ $BuildInfo = if ($BuildManifest -and (Test-Path $BuildManifest ) -and (Split-path - Leaf $BuildManifest ) -eq ' build.psd1' ) {
15+ # Read the build.psd1 configuration file for default parameter values
16+ Write-Debug " Load Build Manifest $BuildManifest "
17+ Import-Metadata - Path $BuildManifest
2318 } else {
2419 @ {}
2520 }
You can’t perform that action at this time.
0 commit comments