diff --git a/commands/sql/sync.sql.inc b/commands/sql/sync.sql.inc index 56bcc25..6bcfbac 100644 --- a/commands/sql/sync.sql.inc +++ b/commands/sql/sync.sql.inc @@ -394,7 +394,7 @@ function drush_sql_sync($source = NULL, $destination = NULL) { $create_db_su = drush_sql_su($target_db_url, $destination_settings); $db_su_connect = _drush_sql_connect($create_db_su); $pre_import_sql = drush_sql_build_createdb_sql($target_db_url); - $pre_import_commands = sprintf('echo "%s" | %s; ', $pre_import_sql, $db_su_connect); + $pre_import_commands = sprintf('echo "%s" | %s && ', $pre_import_sql, $db_su_connect); } // Generate the import command