Ember re-point playbook: the helper.log line is read as an array element, not the last character of a string (the run printed helper_log=r)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-06 16:51:16 +00:00
parent cd33f5d9f0
commit 28c4e81039

View file

@ -41,7 +41,7 @@ else {
$got = '' $got = ''
for ($i = 0; $i -lt 30; $i++) { for ($i = 0; $i -lt 30; $i++) {
Start-Sleep -Seconds 2 Start-Sleep -Seconds 2
if (Test-Path -LiteralPath $hlog) { $lines = @(Get-Content -LiteralPath $hlog); if ($lines.Count -gt $mark) { $new = $lines[$mark..($lines.Count - 1)] | Where-Object { $_ -match 'reregister' }; if ($new) { $got = [string]$new[-1]; break } } } if (Test-Path -LiteralPath $hlog) { $lines = @(Get-Content -LiteralPath $hlog); if ($lines.Count -gt $mark) { $new = @($lines[$mark..($lines.Count - 1)] | Where-Object { $_ -match 'reregister' }); if ($new.Count -gt 0) { $got = [string]$new[$new.Count - 1]; break } } }
} }
Write-Output ('RESULT TUNE helper_log=' + $(if ($got) { $got } else { 'no reregister line within 60 s' })) Write-Output ('RESULT TUNE helper_log=' + $(if ($got) { $got } else { 'no reregister line within 60 s' }))
} }