Skip to content

Commit

Permalink
Fixes #5761 get the relative path to the project root as the descript…
Browse files Browse the repository at this point in the history
…ion says not the drush base path (#5785)
  • Loading branch information
joelpittet committed Oct 18, 2023
1 parent f7e2bfb commit 4ae35f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SiteAlias/ProcessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public function drushScript(SiteAliasInterface $siteAlias)
protected function relativePathToVendorBinDrush()
{
$absoluteVendorBin = $_composer_bin_dir ?? Path::join($this->getConfig()->get('drush.vendor-dir'), 'bin');
$basePath = $this->getConfig()->get('drush.base-dir');
$projectRoot = $this->getConfig()->get('runtime.project');

$relativeVendorBin = Path::makeRelative($absoluteVendorBin, $basePath);
$relativeVendorBin = Path::makeRelative($absoluteVendorBin, $projectRoot);

return Path::join($relativeVendorBin, 'drush');
}
Expand Down

0 comments on commit 4ae35f3

Please sign in to comment.