output message to delete the weblinks installation manually

This commit is contained in:
Daniel Dimitrov 2015-10-31 11:09:22 +01:00
parent dbcb20bff7
commit c41b53afd8
1 changed files with 10 additions and 1 deletions

View File

@ -178,7 +178,16 @@ class RoboFile extends \Robo\Tasks
// Get Joomla Clean Testing sites
if (is_dir($this->cmsPath))
{
$this->taskDeleteDir($this->cmsPath)->run();
try
{
$this->taskDeleteDir($this->cmsPath)->run();
}
catch (Exception $e)
{
// Sorry, we tried :(
$this->say('Sorry, you will have to delete ' . $this->cmsPath . ' manually. ');
exit(1);
}
}
$this->_copyDir('tests/cache', $this->cmsPath);