File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -550,9 +550,11 @@ public function export( $args, $assoc_args ) {
550
550
$ assoc_args ['result-file ' ] = $ result_file ;
551
551
}
552
552
553
- $ support_column_statistics = exec ( '/usr/bin/env mysqldump --help | grep "column-statistics" ' );
553
+ $ mysqldump_binary = Utils \force_env_on_nix_systems ( 'mysqldump ' );
554
554
555
- $ initial_command = sprintf ( '/usr/bin/env mysqldump%s ' , $ this ->get_defaults_flag_string ( $ assoc_args ) );
555
+ $ support_column_statistics = exec ( $ mysqldump_binary . ' --help | grep "column-statistics" ' );
556
+
557
+ $ initial_command = sprintf ( "{$ mysqldump_binary }%s " , $ this ->get_defaults_flag_string ( $ assoc_args ) );
556
558
WP_CLI ::debug ( "Running initial shell command: {$ initial_command }" , 'db ' );
557
559
558
560
$ default_arguments = [ '%s ' ];
You can’t perform that action at this time.
0 commit comments