bugfix: error on multiple contents of directory

This commit is contained in:
Baipyrus 2024-11-28 15:49:20 +01:00
parent 1ed1bb7ef6
commit 878db9489b

View File

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