mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-10-14 10:15:31 +02:00
feat: verbose security
This commit is contained in:
1 parent
fa1a9c2edd
commit
6947348aeb
1 file changed
+2
-10
@@ -233,16 +233,8 @@ System
|
||||
|
||||
$msgLines = $msg -split "`n"
|
||||
foreach ($line in $msgLines) {
|
||||
if ($line -match '\$(\w+)') {
|
||||
$parts = $line -split '(\$\w+)'
|
||||
foreach ($part in $parts) {
|
||||
if ($part -match '\$(\w+)') {
|
||||
Write-Host -NoNewline $part -ForegroundColor Red
|
||||
} else {
|
||||
Write-Host -NoNewline $part
|
||||
}
|
||||
}
|
||||
Write-Host ""
|
||||
if ($line -match '^\s*disabled.*\)$') {
|
||||
Write-Host -NoNewline $line -ForegroundColor Red
|
||||
} else {
|
||||
Write-Host $line
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user