30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-09 09:42:24 +00:00

output message to delete the weblinks installation manually

This commit is contained in:
Daniel Dimitrov 2015-10-29 18:14:47 +01:00
parent 35840637b8
commit 36f2d2c048

View File

@ -172,7 +172,16 @@ class RoboFile extends \Robo\Tasks
// Get Joomla Clean Testing sites
if (is_dir('tests/joomla-cms3'))
{
$this->taskDeleteDir('tests/joomla-cms3')->run();
try
{
$this->taskDeleteDir('tests/joomla-cms3')->run();
}
catch (Exception $e)
{
// Sorry, we tried :(
$this->say('Sorry, you will have to delete ' . realpath(dirname(__FILE__) . '/tests/joomla-cms3'). ' manually. ');
exit(1);
}
}
$this->_exec('git' . $this->extension . ' clone -b staging --single-branch --depth 1 https://github.com/joomla/joomla-cms.git tests/joomla-cms3');