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