Skip to content

Commit

Permalink
Merge pull request #38 from madewithlove/allow-absolute-paths
Browse files Browse the repository at this point in the history
Allow absolute file paths
  • Loading branch information
jdrieghe authored May 10, 2022
2 parents 166a3de + d07983f commit c232524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Configuration/AllowedLicensesParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ private function configurationExists(string $fileName): bool

private function getConfigurationFilePath(string $fileName): string
{
if (str_starts_with($fileName, '/')) {
return $fileName;
}

return $this->workingDirectory . '/' . $fileName;
}
}

0 comments on commit c232524

Please # to comment.