Skip to content

PowerShell script fast_mode.ps1: Fix syntax errors in context-aware verdict section #434

@abhishek45611

Description

@abhishek45611

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions