user-token.ps1: also find verae-print.exe next to the scripts dir (dist layout)
This commit is contained in:
parent
1adb28bf37
commit
bfc7d4e485
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue