Skip to content

Commit 374f81b

Browse files
committed
Updated dotsourcing method for the functions
1 parent b9b490c commit 374f81b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

HashData.psm1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11

2-
foreach ($function in (Get-ChildItem -file -Path(Join-Path -Path $PSScriptRoot -ChildPath .\functions)))
3-
{
4-
Write-Verbose -Message "Importing function $($function.FullName)"
5-
. $function.FullName
2+
foreach ($file in (Get-ChildItem -file -Path(Join-Path -Path $PSScriptRoot -ChildPath .\functions)))
3+
{
4+
. ([Scriptblock]::Create([System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8)))
65
}
76

87

0 commit comments

Comments
 (0)