We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b490c commit 374f81bCopy full SHA for 374f81b
1 file changed
HashData.psm1
@@ -1,8 +1,7 @@
1
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
+foreach ($file in (Get-ChildItem -file -Path(Join-Path -Path $PSScriptRoot -ChildPath .\functions)))
+{
+ . ([Scriptblock]::Create([System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8)))
6
}
7
8
0 commit comments