File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
# ----------------------------------------------------------------------------------
14
14
15
15
param (
16
- [string ] $configuration = ' Debug'
16
+ [string ] $configuration = ' Debug' ,
17
+ [string ] $pathDelimiter = ' :'
17
18
)
18
19
19
- $outputDir = " $PSScriptRoot /../src/Package/$configuration /"
20
+ $tempModulePath = $env: PSModulePath
21
+ $outputDir = " $PSScriptRoot /../src/Package/$configuration "
20
22
Write-Warning " Running Test-ModuleManfiest on .psd1 files in $outputDir "
21
- $env: PSModulePath += " ; $ outputDir /ResourceManager/AzureResourceManager/; $outputDir /Storage/"
23
+ $env: PSModulePath += " $pathDelimiter$ outputDir /ResourceManager/AzureResourceManager/$pathDelimiter $outputDir /Storage/"
22
24
Write-Warning " PSModulePath: $env: PSModulePath "
23
25
24
26
$success = $true
@@ -31,6 +33,7 @@ foreach($psd1FilePath in Get-ChildItem -Path $outputDir -Recurse -Filter *.psd1)
31
33
}
32
34
}
33
35
36
+ $env: PSModulePath = $tempModulePath
34
37
if (-not $success ) {
35
38
Write-Warning ' Failure: One or more module manifests failed to load.'
36
39
exit 1
You can’t perform that action at this time.
0 commit comments