mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 02:41: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
|
||||
$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
|
||||
|
Loading…
Reference in New Issue
Block a user