Commit ef408f09 authored by Jon Pugh's avatar Jon Pugh

Issue #2754069: Replace drush_get_option('installed') with _provision_drupal_site_exists().

parent f7fd5cc8
......@@ -16,7 +16,7 @@ function drush_provision_drupal_provision_backup_validate($backup_file = NULL) {
drush_set_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
}
}
if (!drush_get_option('installed') && !drush_get_option('force', false)) {
if (!_provision_drupal_site_exists() && !drush_get_option('force', false)) {
drush_set_error('PROVISION_DRUPAL_SITE_NOT_FOUND');
}
......
......@@ -55,7 +55,7 @@ function provision_drupal_drush_exit() {
if (preg_match("/^provision-/", $command[0]) && drush_get_option('provision_save_config', TRUE)) {
if (d()->type === 'site') {
if (drush_get_option('installed')) {
if (_provision_drupal_site_exists()) {
// Don't generate the drushrc.php on provision-save/delete commands.
if (!preg_match("/^provision-(save|delete)/", $command[0])) {
provision_save_site_data();
......
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