Commit eea6d97b authored by Steven Jones's avatar Steven Jones

Make sure $count is defined before we use it in the DNS.

parent 3dfee415
......@@ -39,6 +39,7 @@ function drush_provision_drupal_provision_backup_validate($backup_file = NULL) {
$suggested = d()->platform->server->backup_path . '/' . d()->uri . '-' . date("Ymd.His", time()) . '.tar.gz';
// Use format of mysite.com-2008-01-02, if already existing, add number.
$count = 0;
while (is_file($suggested)) {
$count++;
$suggested = d()->platform->server->backup_path . '/' . d()->uri . '-' . date('Ymd.His', time()) . '_' . $count . '.tar.gz';
......
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