mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21:46 +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)
|
$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"
|
$destination = "$parent\$fileName"
|
||||||
|
|
||||||
# Create destination directory
|
# Create destination directory
|
||||||
|
Loading…
Reference in New Issue
Block a user