Skip to content

Commit 798fe50

Browse files
Update features/bootstrap/FeatureContext.php
Co-Authored-By: Alain Schlesser <[email protected]>
1 parent 19c7f0a commit 798fe50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,8 @@ public function install_wp( $subdir = '' ) {
857857
mkdir( $install_cache_path );
858858
self::dir_diff_copy( $run_dir, self::$cache_dir, $install_cache_path );
859859

860-
$support_column_statistics = exec( '/usr/bin/env mysqldump --help | grep "column-statistics"' );
860+
$mysqldump_binary = Utils\force_env_on_nix_systems( 'mysqldump' );
861+
$support_column_statistics = exec( "{$mysqldump_binary} --help | grep 'column-statistics'" );
861862
$command = 'mysqldump --no-defaults';
862863
if ( $support_column_statistics ) {
863864
$command .= ' --skip-column-statistics';

0 commit comments

Comments
 (0)