Skip to content

Commit

Permalink
Use basedir in "clean" action
Browse files Browse the repository at this point in the history
  • Loading branch information
schmengler committed May 22, 2015
1 parent 41143a4 commit 6006803
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modman.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,12 @@ class Modman_Command_Clean {
*/
public function doClean() {
$oResourceRemover = new Modman_Resource_Remover();
foreach ($this->getDeadSymlinks() as $sSymlink) {
$sBaseDirFile = Modman_Command_Init::getBaseDirFile();
$sBaseDir = null;
if (file_exists($sBaseDirFile)) {
$sBaseDir = file_get_contents($sBaseDirFile);
}
foreach ($this->getDeadSymlinks($sBaseDir) as $sSymlink) {
echo 'Remove ' . $sSymlink . '.' . PHP_EOL;
$oResourceRemover->doRemoveResource($sSymlink);
}
Expand Down

0 comments on commit 6006803

Please sign in to comment.