diff --git a/util/windows.psm1 b/util/windows.psm1 index ddf8378..276763c 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -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