From f26a8bc6b20cc6b15ea4e347872485f9e54099c3 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 21 Mar 2025 10:39:54 +0900 Subject: [PATCH] chg: Output horizontally --- WELA.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WELA.ps1 b/WELA.ps1 index 275e37e2..607fe294 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -108,7 +108,7 @@ function CalculateTotalUsableRate { function ShowRulesCountsByLevel { param ($usableRate, $msg, $colorMsg) Write-Host -NoNewline $msg - $color = if ($colorMsg -match "Disabled") { "Red" } elseif ($colorMsg -match "Paritial") { "DarkYellow" } else { "White" } + $color = if ($colorMsg -match "Disabled") { "Red" } elseif ($colorMsg -contains "Paritial") { "DarkYellow" } else { "White" } Write-Host "$colorMsg" -ForegroundColor $color $levelColorMap = [ordered]@{ "critical" = "Red"