Skip to content

Commit

Permalink
Fix reactor install
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 9, 2023
1 parent 204474c commit 58354d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/reactor/src/ReactorPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ function (
protected function addMainFileToServers(string $engine, string $name, string $file, IOInterface $io): void
{
$filePath = Str::removeLeft(
Path::normalize(WINDWALKER_SERVERS . '/' . $file),
WINDWALKER_ROOT . '/'
Path::normalize(WINDWALKER_SERVERS . '/' . $file, '/'),
Path::normalize(WINDWALKER_ROOT, '/')
);
$filePath = ltrim($filePath, '/');
$registryFile = WINDWALKER_RESOURCES . '/registry/servers.php';

if (is_file($registryFile)) {
Expand Down

0 comments on commit 58354d8

Please sign in to comment.