Commit 961deee4 authored by anarcat's avatar anarcat Committed by anarcat

#529348 - make disable work even when the site doesn't exist

parent 1530886c
......@@ -10,7 +10,12 @@
* Make sure the site is installed and enabled, and that we have a valid target to back up to.
*/
function drush_provision_drupal_provision_backup_validate($url = NULL, $backup_file = NULL) {
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE);
if (!@drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_SITE)) {
if (drush_get_option('force', false)) {
drush_log("clearing error");
drush_set_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
}
}
if (!drush_get_option('installed') && !drush_get_option('force', false)) {
drush_set_error('PROVISION_DRUPAL_SITE_NOT_FOUND');
}
......
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