From b453f2b2b1c62f87524c6cb19c780dba2cac73f8 Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Mon, 17 Aug 2020 23:00:40 +0200 Subject: [PATCH] fix sourcing --- AU/AU.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AU/AU.psm1 b/AU/AU.psm1 index 3148b41c..d29f0b09 100644 --- a/AU/AU.psm1 +++ b/AU/AU.psm1 @@ -2,5 +2,5 @@ $paths = "Private", "Public" foreach ($path in $paths) { - ls $PSScriptRoot\$path\*.ps1 | % { . $_ } + Get-ChildItem $PSScriptRoot\$path\*.ps1 | ForEach-Object { . $_.FullName } }