user-token.ps1: also find verae-print.exe next to the scripts dir (dist layout)

This commit is contained in:
Grok Bot (for George) 2026-10-03 19:22:05 -04:00
commit bfc7d4e485

View file

@ -17,7 +17,7 @@ $ValidateUrl = "https://zap.verae.ai/v1/status" # documented as free; 401 = ba
# Invoke-WebRequest was seen timing out on nimo (proxy auto-detect) while Go and
# curl answered in <1 s. The key is read from a file and never on a command line.
function Find-VeraeExe {
foreach ($c in @((Join-Path $PSScriptRoot "verae-print.exe"), (Join-Path (Split-Path -Parent $PSScriptRoot) "bin\verae-print.exe"))) {
foreach ($c in @((Join-Path $PSScriptRoot "verae-print.exe"), (Join-Path (Split-Path -Parent $PSScriptRoot) "bin\verae-print.exe"), (Join-Path (Split-Path -Parent $PSScriptRoot) "verae-print.exe"))) {
if (Test-Path $c) { return $c }
}
return $null