mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-22 01:59:08 +00:00
Merge pull request #162 from yvesh/master
Fixed caching issue with folder not deleted before new clone
This commit is contained in:
commit
63313389ce
@ -274,6 +274,11 @@ class RoboFile extends \Robo\Tasks
|
|||||||
// Caching cloned installations locally
|
// Caching cloned installations locally
|
||||||
if (!is_dir('tests/cache') || (time() - filemtime('tests/cache') > 60 * 60 * 24))
|
if (!is_dir('tests/cache') || (time() - filemtime('tests/cache') > 60 * 60 * 24))
|
||||||
{
|
{
|
||||||
|
if (file_exists('tests/cache'))
|
||||||
|
{
|
||||||
|
$this->taskDeleteDir('tests/cache')->run();
|
||||||
|
}
|
||||||
|
|
||||||
$this->_exec($this->buildGitCloneCommand());
|
$this->_exec($this->buildGitCloneCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user