mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: use directory's own name instead of full path instead
This commit is contained in:
parent
10d520c12a
commit
0e50978a74
@ -96,7 +96,9 @@ function ProcessUrlFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Create temporary directory for curl
|
# 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"
|
$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
|
||||||
|
Loading…
Reference in New Issue
Block a user