Skip to content

Commit a3804a6

Browse files
committed
no grep
1 parent 94ba759 commit a3804a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Context/FeatureContext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,8 @@ public function install_wp( $subdir = '' ): void {
14551455
if ( 'sqlite' !== self::$db_type ) {
14561456
$mysqldump_binary = Utils\get_sql_dump_command();
14571457
$mysqldump_binary = Utils\force_env_on_nix_systems( $mysqldump_binary );
1458-
$support_column_statistics = exec( "{$mysqldump_binary} --help | grep 'column-statistics'" );
1458+
$help_output = shell_exec( "{$mysqldump_binary} --help" );
1459+
$support_column_statistics = false !== strpos( $help_output, 'column-statistics' );
14591460
$command = "{$mysqldump_binary} --no-defaults --no-tablespaces";
14601461
if ( $support_column_statistics ) {
14611462
$command .= ' --skip-column-statistics';

0 commit comments

Comments
 (0)