From 8990d50297fa85af765d2920ae33171a2a34afe2 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 17:13:29 +0100 Subject: [PATCH] bugfix: GCI -Include only works with -Recurse or wildcard --- util/windows.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index 6ad0f70..8dbe3d0 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -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) {