Commit 86b78627 authored by anarcat's avatar anarcat Committed by anarcat

dereference the parent directory of the target platform if it doesn't exist

this commit is a proper redo of 3e49766d19d407c492886860f7081f688b73c630
parent 48773fa7
......@@ -8,6 +8,13 @@ function drush_provision_hostmaster_migrate_validate($site, $platform) {
$alias_file = drush_server_home() . '/.drush/server_master.alias.drushrc.php';
if (!file_exists($platform)) {
$dir = realpath(dirname($platform));
if (file_exists($dir)) {
$platform = $dir . '/' . basename($platform);
drush_log("changed relative platform path to absolute");
}
}
// If the alias file exists, it means we are migrating from a post alpha9 release.
if (file_exists($alias_file)) {
......
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