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 # Create temporary directory for curl
$appname = Get-ChildItem $source | ` $appname = Split-Path -Leaf $source
Select-Object -ExpandProperty Directory | `
Select-Object -ExpandProperty Name
$tmpApp = "$env:TMP\$appname-config" $tmpApp = "$env:TMP\$appname-config"
if (-not (Test-Path $tmpApp)) if (-not (Test-Path $tmpApp))
{ New-Item -ItemType Directory -Path $tmpApp | Out-Null { New-Item -ItemType Directory -Path $tmpApp | Out-Null