Commit 30150a67 authored by Adrian Rossouw's avatar Adrian Rossouw

dont try to generate a drushrc on a provision-save command.

parent 65501899
......@@ -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();
}
}
......
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