summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Rossouw2010-06-18 04:25:30 (GMT)
committerAdrian Rossouw2010-06-18 04:33:18 (GMT)
commit30150a671ac57e3c15804e9eec979fe5294b9562 (patch)
treec47afbd7e6c4db30d045d2c49d2c147dfdda5c5e
parent65501899e46665f6a450af31110856ee6280c1b2 (diff)
dont try to generate a drushrc on a provision-save command.
-rw-r--r--platform/provision_drupal.drush.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/provision_drupal.drush.inc b/platform/provision_drupal.drush.inc
index 494401a..15b04ed 100644
--- a/platform/provision_drupal.drush.inc
+++ b/platform/provision_drupal.drush.inc
@@ -66,8 +66,8 @@ function provision_drupal_drush_exit() {
}
}
elseif (d()->type === 'platform') {
- // Generate a drushrc.php for the platform unless it's being deleted
- if (!preg_match("/^provision-delete/", $command[0])) {
+ // Don't generate the drushrc.php on provision-save/delete commands.
+ if (!preg_match("/^provision-(save|delete)/", $command[0])) {
provision_save_platform_data();
}
}