bugfix: GCI -Include only works with -Recurse or wildcard

This commit is contained in:
Baipyrus 2024-11-28 17:13:29 +01:00
parent 06977c0db5
commit 8990d50297

View File

@ -149,7 +149,7 @@ function InstallNerdFont
Expand-Archive $source -DestinationPath $destination -Force | Out-Null
# Install extracted fonts
$fontFiles = Get-ChildItem -Path $destination -Include "*.ttf", "*.otf"
$fontFiles = Get-ChildItem -Path $destination -Recurse -Include "*.ttf", "*.otf"
foreach ($font in $fontFiles)
{