Commit b9d5b1f0 authored by anarcat's avatar anarcat Committed by anarcat

dereference relative paths in hostmaster-migrate

this way if the user gives ../hostmaster-0.4-alpha9 as a path for the
target platform (my first reaction), this will still work
parent f976b5ff
......@@ -43,7 +43,8 @@ function drush_provision_hostmaster_migrate_validate($site, $platform) {
return false;
}
// dereference relative paths and symlinks
$platform = realpath($plaform);
$new_platform = '@platform_' . preg_replace("/[!\W]/", "", basename(rtrim($platform, '/')));
drush_backend_invoke_args("provision-save", array($new_platform), array(
'context_type' => 'platform',
......
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