Commit c92ad85f authored by anarcat's avatar anarcat Committed by anarcat
Browse files

Merge branch 'master' of hostmaster.koumbit.net:/var/hostmaster/.drush/provision

parents 929be0fc dc08388c
......@@ -404,7 +404,7 @@ function _provision_drupal_delete_aliases($aliases) {
$aliases = explode(",", $aliases);
}
foreach ($aliases as $alias) {
if (trim($alias)) {
if ($alias = trim($alias)) {
provision_path("unlink", drush_get_option('docroot_path') . "/sites/" . $alias, TRUE,
dt("Removed symlink for alias @alias", array("@alias" => $alias)),
dt("Could not remove symlink for alias @alias", array("@alias" => $alias)));
......
......@@ -146,11 +146,11 @@ function provision_path_mkdir($path) {
}
function provision_path_rmdir($path) {
return (file_exists($path) && is_dir($path)) ? rmdir($path) : false;
return rmdir($path);
}
function provision_path_unlink($path) {
return (file_exists($path)) ? unlink($path) : false;
return unlink($path);
}
......
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