Commit d78fe686 authored by anarcat's avatar anarcat

show correctly the backup path to the user regardless of the backup level

parent 287b7d53
......@@ -30,7 +30,7 @@ function drush_provision_drupal_provision_backup_validate($backup_file = NULL) {
drush_set_error('PROVISION_BACKUP_ALREADY_EXISTS', dt('Back up file @path already exists.', array('@path' => $backup_file)));
}
else {
drush_log(dt('Backing site up to @path.', array('@path' => $backup_file)), 'ok');
drush_log(dt('Backing site up to @path.', array('@path' => $backup_file)));
drush_set_option('backup_file', $backup_file);
}
}
......@@ -110,6 +110,10 @@ function drush_provision_drupal_provision_backup() {
}
}
function drush_provision_drupal_post_provision_backup() {
drush_log(dt('Backed up site up to @path.', array('@path' => drush_get_option('backup_file'))), 'success');
}
/**
* Remove the backup file if something went wrong
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment