Skip to content

Commit

Permalink
Fix building config with custom dir under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark authored and hiqsol committed Feb 24, 2020
1 parent 4d68359 commit 217fcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ private function withParams(): bool

private function findDepth()
{
$outDir = dirname($this->getOutputPath());
$outDir = dirname(self::normalizePath($this->getOutputPath()));
$diff = substr($outDir, strlen($this->getBaseDir()));

return substr_count($diff, DIRECTORY_SEPARATOR);
return substr_count($diff, '/');
}

/**
Expand Down

0 comments on commit 217fcbe

Please sign in to comment.