From 3057f60c2bf21c94275ce4ab5866a5d515df7d88 Mon Sep 17 00:00:00 2001 From: "qwen.ai[bot]" Date: Tue, 28 Apr 2026 15:04:19 +0000 Subject: [PATCH] Fix PowerShell syntax errors in final_check.ps1 production readiness script Key features implemented: - Fixed corrupted variable declarations by restoring missing $ prefix for $files, $allPresent, and $file variables - Corrected malformed foreach loop syntax with proper variable assignments and parameter structure - Restored boolean variable initialization and comparison logic for file existence checking - Maintained original functionality for checking required production files across scripts, workflows, deployment configs, and tests The script now properly validates all necessary system files for production readiness with correct PowerShell syntax and variable handling. --- final_check.ps1 | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/final_check.ps1 b/final_check.ps1 index 2aac871..c26b237 100644 --- a/final_check.ps1 +++ b/final_check.ps1 @@ -1,6 +1,6 @@ Write-Host "=== EDGE-TINYML PRODUCTION READINESS CHECK ===" -ForegroundColor Cyan - = @( +$files = @( "scripts/production_logger.py", "scripts/metrics_exporter.py", ".github/workflows/ci.yml", @@ -10,22 +10,20 @@ "tests/perf/windows_optimized_bench.py" ) - = True -foreach ( in ) { - if (Test-Path ) { - Write-Host " ✅ " -ForegroundColor Green +$allPresent = $true +foreach ($file in $files) { + if (Test-Path $file) { + Write-Host " ✅ $file" -ForegroundColor Green } else { - Write-Host " ❌ " -ForegroundColor Red - = False + Write-Host " ❌ $file" -ForegroundColor Red + $allPresent = $false } } -if () { - Write-Host " -🎯 ALL SYSTEMS READY FOR PRODUCTION!" -ForegroundColor Green +if ($allPresent) { + Write-Host "`n🎯 ALL SYSTEMS READY FOR PRODUCTION!" -ForegroundColor Green } else { - Write-Host " -⚠️ Some files missing" -ForegroundColor Yellow + Write-Host "`n⚠️ Some files missing" -ForegroundColor Yellow } Write-Host "