From b93da32a72a58cafe77fbd493d4dd68454109ec5 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski <75446+jpawlowski@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:31:55 +0200 Subject: [PATCH] remove conflicting font check --- src/powershell-extended/Install-NerdFont.ps1 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/powershell-extended/Install-NerdFont.ps1 b/src/powershell-extended/Install-NerdFont.ps1 index 45777ca..7752209 100644 --- a/src/powershell-extended/Install-NerdFont.ps1 +++ b/src/powershell-extended/Install-NerdFont.ps1 @@ -556,17 +556,7 @@ begin { } if ($invalidSelections.Count -eq 0) { - # Check for conflicting fonts - $conflictingFonts = $validSelections | Group-Object -Property unpatchedName | Where-Object { $_.Count -gt 1 } - if ($conflictingFonts.Count -eq 0) { - return $validSelections.caskName - } - else { - foreach ($conflict in $conflictingFonts) { - $conflictNames = $conflict.Group | ForEach-Object { $_.imagePreviewFont } - Write-Host "Conflicting selection(s): $($conflictNames -join ', '). These fonts cannot be installed together because they share the same base font name." -ForegroundColor Red - } - } + return $validSelections.caskName } else { Write-Host "Invalid selection(s): $($invalidSelections -join ', '). Please enter valid numbers between 0 and $($Options.Length - 1) or 'q' to quit." -ForegroundColor Red