Use version instead of -v

This commit is contained in:
crazywhalecc 2025-06-18 21:27:07 +08:00
parent 4ecaffd908
commit becee5b426
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -227,7 +227,7 @@ abstract class UnixBuilderBase extends BuilderBase
if (!file_exists($frankenphp)) {
throw new RuntimeException('FrankenPHP binary not found: ' . $frankenphp);
}
[$ret, $output] = shell()->execWithResult($frankenphp . ' -v');
[$ret, $output] = shell()->execWithResult("{$frankenphp} version");
if ($ret !== 0 || !str_contains(implode('', $output), 'FrankenPHP')) {
throw new RuntimeException('FrankenPHP failed sanity check: ret[' . $ret . ']. out[' . implode('', $output) . ']');
}