mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +00:00
compat: fix compatibility with PowerShell 5
This commit is contained in:
parent
f952f8c891
commit
1ed1bb7ef6
@ -179,7 +179,9 @@ function InstallNerdFont
|
||||
)
|
||||
|
||||
$fileName = [System.IO.Path]::GetFileNameWithoutExtension($source)
|
||||
$parent = $source -split '\\' | Select-Object -SkipLast 1 | Join-String -Separator '\'
|
||||
$parent = Get-ChildItem $source | `
|
||||
Select-Object -ExpandProperty Parent | `
|
||||
Select-Object -ExpandProperty FullName
|
||||
$destination = "$parent\$fileName"
|
||||
|
||||
# Create destination directory
|
||||
|
Loading…
Reference in New Issue
Block a user