mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 10:51:46 +00:00
cleanup: replace custom solution with Path::GetDirName
This commit is contained in:
parent
05de50080a
commit
56d0f1e209
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user