mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
bugfix: error on multiple contents of directory
This commit is contained in:
parent
1ed1bb7ef6
commit
878db9489b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user