diff --git a/src/DB_Command.php b/src/DB_Command.php index e4e6b1aa..0a246cbd 100644 --- a/src/DB_Command.php +++ b/src/DB_Command.php @@ -2168,7 +2168,7 @@ protected function get_current_sql_modes( $assoc_args ) { */ private static function sanitize_mysql_command( $command, $default_flags ) { return sprintf( - '/usr/bin/env $(test -L $(command -v %s) && /usr/bin/readlink -f $(command -v %s) || command -v %s)%s', + '/usr/bin/env $(/usr/bin/readlink -f $(command -v %s)%s', $command, $command, $command,