Skip to content

Commit b44387b

Browse files
Template update & bugfix
1 parent 07a043e commit b44387b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

templates/module/PSMDTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@{
22
TemplateName = 'module'
3-
Version = "1.1.0.0"
3+
Version = "1.1.1.0"
44
AutoIncrementVersion = $true
55
Tags = 'module'
66
Author = 'Friedrich Weinmann'

templates/module/þnameþ.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@{
22
# Script module or binary module file associated with this manifest
3-
ModuleToProcess = 'þnameþ.psm1'
3+
RootModule = 'þnameþ.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.0.0.0'
6+
ModuleVersion = '1.0.0'
77

88
# ID used to uniquely identify this module
99
GUID = 'þ!guid!þ'

templates/module/þnameþ.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function Import-ModuleFile
2727
$Path
2828
)
2929

30-
if ($script:dontDotSource) { $ExecutionContext.InvokeCommand.InvokeScript($false, ([scriptblock]::Create([io.file]::ReadAllText((Resolve-Path $Path)))), $null, $null) }
31-
else { . (Resolve-Path $Path) }
30+
if ($script:dontDotSource) { $ExecutionContext.InvokeCommand.InvokeScript($false, ([scriptblock]::Create([io.file]::ReadAllText((Resolve-Path $Path).ProviderPath))), $null, $null) }
31+
else { . (Resolve-Path $Path).ProviderPath }
3232
}
3333
#endregion Helper function
3434

0 commit comments

Comments
 (0)