From 878db9489b4eebbe2440df274fd12fe8c0c8a106 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 15:49:20 +0100 Subject: [PATCH] bugfix: error on multiple contents of directory --- util/windows.psm1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index ddf8378..276763c 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -104,9 +104,7 @@ function ProcessUrlFiles } # Create temporary directory for curl - $appname = Get-ChildItem $source | ` - Select-Object -ExpandProperty Directory | ` - Select-Object -ExpandProperty Name + $appname = Split-Path -Leaf $source $tmpApp = "$env:TMP\$appname-config" if (-not (Test-Path $tmpApp)) { New-Item -ItemType Directory -Path $tmpApp | Out-Null