cleanup: replace custom solution with Path::GetDirName

This commit is contained in:
Baipyrus 2024-11-28 14:16:50 +01:00
parent 05de50080a
commit 56d0f1e209

View File

@ -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