Files
EetCpp/scripts/eet-preflight.ps1
T

20 lines
476 B
PowerShell

$ErrorActionPreference = "Stop"
$required = @(
"EETCPP_PLAYGROUND",
"EET_ENDPOINT",
"EET_PKCS12_PATH",
"EET_PKCS12_PASSWORD"
)
foreach ($name in $required) {
if (-not (Get-Item "Env:$name" -ErrorAction SilentlyContinue)) {
throw "Set $name before running preflight."
}
}
& $env:EETCPP_PLAYGROUND preflight `
--endpoint $env:EET_ENDPOINT `
--certificate $env:EET_PKCS12_PATH `
--password-env EET_PKCS12_PASSWORD
exit $LASTEXITCODE