From e693cc78c57c5782a83eb47cde793090bc82a8c5 Mon Sep 17 00:00:00 2001 From: Artem Bokov Date: Tue, 9 Oct 2018 16:57:51 +0200 Subject: [PATCH] fix '$env:TEMP' path resolving issue '$env:TEMP' can be resolved to DOS-style path, and then after 'Join-Path' the resulting literal path is invalid --- DockerMsftProvider.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DockerMsftProvider.psm1 b/DockerMsftProvider.psm1 index a4292f9..6ea2974 100644 --- a/DockerMsftProvider.psm1 +++ b/DockerMsftProvider.psm1 @@ -13,7 +13,7 @@ Microsoft.PowerShell.Core\Set-StrictMode -Version Latest $script:Providername = "DockerMsftProvider" $script:DockerSources = $null -$script:location_modules = Microsoft.PowerShell.Management\Join-Path -Path $env:TEMP -ChildPath $script:ProviderName +$script:location_modules = Microsoft.PowerShell.Management\Join-Path -Path (Get-Item $env:TEMP).FullName -ChildPath $script:ProviderName $script:location_sources= Microsoft.PowerShell.Management\Join-Path -Path $env:LOCALAPPDATA -ChildPath $script:ProviderName $script:file_modules = Microsoft.PowerShell.Management\Join-Path -Path $script:location_sources -ChildPath "sources.txt" $script:DockerSearchIndex = "DockerSearchIndex.json"