bugfix: use directory's own name instead of full path instead

This commit is contained in:
Baipyrus 2024-11-28 14:54:34 +01:00
parent 10d520c12a
commit 0e50978a74

View File

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