bugfix: parent of file is directory property

This commit is contained in:
Baipyrus 2024-11-28 16:04:33 +01:00
parent 878db9489b
commit 7c86d72ece

View File

@ -178,7 +178,7 @@ function InstallNerdFont
$fileName = [System.IO.Path]::GetFileNameWithoutExtension($source) $fileName = [System.IO.Path]::GetFileNameWithoutExtension($source)
$parent = Get-ChildItem $source | ` $parent = Get-ChildItem $source | `
Select-Object -ExpandProperty Parent | ` Select-Object -ExpandProperty Directory | `
Select-Object -ExpandProperty FullName Select-Object -ExpandProperty FullName
$destination = "$parent\$fileName" $destination = "$parent\$fileName"