mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Use version instead of -v
This commit is contained in:
parent
4ecaffd908
commit
becee5b426
@ -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) . ']');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user