Skip to content

Commit

Permalink
Fix root path issue in BuildDepot
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 9, 2024
1 parent 70a756e commit d7ed223
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Depots/BuildDepot.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ public function build()
*/
public function getRootPath()
{
$vendor = __DIR__ . '/../../../../../';
$main = __DIR__ . '/../../../../../';

$root = __DIR__ . '/../../';
$exists = file_exists($main . '/vendor/autoload.php');

$exists = file_exists($vendor . '.gitignore');

return $exists ? $vendor : $root;
return $exists ? $main : __DIR__ . '/../../';
}
}

0 comments on commit d7ed223

Please sign in to comment.