Commit 2d64de35 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

safety check in rollback: do not delete sites/$url if url is false

that was removing the whole sites directory on some weird error
conditions, see #421106
parent 02ec5093
......@@ -47,7 +47,11 @@ function provision_drupal_provision_install($url) {
function provision_drupal_provision_install_rollback($url) {
if (!(drush_get_error() & PROVISION_SITE_INSTALLED)) {
if ($url) {
} else {
drush_set_error('PROVISION_FRAMEWORK_ERROR', dt('no url defined in %function', array('%function' => __FUNCTION__)));
Supports Markdown
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