Skip to content

Commit 771824c

Browse files
committed
bugfix for *.psm1 generation
1 parent fafc369 commit 771824c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/UpdateModules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function New-ModulePsm1 {
8585
# Create imports for nested modules.
8686
if ($ModuleMetadata.NestedModules -ne $null) {
8787
foreach ($dll in $ModuleMetadata.NestedModules) {
88-
$importedModules += "Import-Module (Join-Path -Path `$PSScriptRoot -ChildPath " + $dll.Substring(2) + ")`r`n"
88+
$importedModules += "Import-Module (Join-Path -Path `$PSScriptRoot -ChildPath " + $dll + ")`r`n"
8989
}
9090
}
9191

0 commit comments

Comments
 (0)