From 0e50978a74d19eb7ccba1e72ac771137fc966072 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 14:54:34 +0100 Subject: [PATCH] bugfix: use directory's own name instead of full path instead --- util/windows.psm1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index 1410523..ffa487b 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -96,7 +96,9 @@ function ProcessUrlFiles } # Create temporary directory for curl - $appname = [System.IO.Path]::GetDirectoryName($source) + $appname = Get-ChildItem $source | ` + Select-Object -ExpandProperty Directory | ` + Select-Object -ExpandProperty Name $tmpApp = "$env:TMP\$appname-config" if (-not (Test-Path $tmpApp)) { New-Item -ItemType Directory -Path $tmpApp | Out-Null