-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
The PowerShell script fast_mode.ps1 fails to execute due to syntax errors in the final section (context-aware verdict).
Errors observed:
- Missing string terminator (") in one or more Write-Host statements
- Missing closing curly brackets (}) in if/elseif/else blocks
Corrected code for the problematic section:
# Context-aware verdict
if ($failCount -eq 0 -and $passCount -gt 0) {
if ($utf8Capable) {
Write-Host "$([char]0x2705) GO — All validators passed" -ForegroundColor Green
} else {
Write-Host "[GO] All validators passed" -ForegroundColor Green
}
}
elseif ($failCount -gt 0) {
if ($utf8Capable) {
Write-Host "$([char]0x274C) NO-GO — Failures detected" -ForegroundColor Red
} else {
Write-Host "[NO-GO] Failures detected" -ForegroundColor Red
}
}
else {
if ($utf8Capable) {
Write-Host "$([char]0x26A0) NO-GO — No validators executed successfully" -ForegroundColor Yellow
} else {
Write-Host "[NO-GO] No validators executed successfully" -ForegroundColor Yellow
}
}
Please update fast_mode.ps1 to use the above corrected section. This will resolve the parser errors and allow proper execution.
Metadata
Metadata
Assignees
Labels
No labels