From e5899fe175c40aaa61ac5c18e57007fba172a391 Mon Sep 17 00:00:00 2001 From: Heiko Stehli Date: Sun, 1 May 2022 13:30:56 +0200 Subject: [PATCH] prevent early resolving of Powershell variables by using .NET Combine instead of Join-Path --- source/Public/Resolve-Datum.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Public/Resolve-Datum.ps1 b/source/Public/Resolve-Datum.ps1 index c84c55d..6dd961e 100644 --- a/source/Public/Resolve-Datum.ps1 +++ b/source/Public/Resolve-Datum.ps1 @@ -179,7 +179,7 @@ function Resolve-Datum { #through the hierarchy $arraySb = [System.Collections.ArrayList]@() - $currentSearch = Join-Path -Path $searchPrefix -ChildPath $PropertyPath + $currentSearch = [System.IO.Path]::Combine($searchPrefix, $PropertyPath) Write-Verbose -Message '' Write-Verbose -Message " Lookup <$currentSearch> $($Node.Name)" #extract script block for execution into array, replace by substition strings {0},{1}...