From 56d0f1e209769a2734045ba5d8abbc45dfffe2c2 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 14:16:50 +0100 Subject: [PATCH] cleanup: replace custom solution with Path::GetDirName --- util/windows.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index b246ed2..a172cb6 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -96,7 +96,7 @@ function ProcessUrlFiles } # Create temporary directory for curl - $appname = $source.Split('\')[-1] + $appname = [System.IO.Path]::GetDirectoryName($source) $tmpApp = "$env:TMP\$appname-config" if (-not (Test-Path $tmpApp)) { New-Item -ItemType Directory -Path $tmpApp | Out-Null