Skip to content

Commit b7bd1f5

Browse files
committed
Use env for supporting mysqldump call as well
1 parent 24e1328 commit b7bd1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public function export( $args, $assoc_args ) {
550550
$assoc_args['result-file'] = $result_file;
551551
}
552552

553-
$support_column_statistics = exec( 'mysqldump --help | grep "column-statistics"' );
553+
$support_column_statistics = exec( '/usr/bin/env mysqldump --help | grep "column-statistics"' );
554554

555555
$initial_command = sprintf( '/usr/bin/env mysqldump%s ', $this->get_defaults_flag_string( $assoc_args ) );
556556
WP_CLI::debug( "Running initial shell command: {$initial_command}", 'db' );

0 commit comments

Comments
 (0)