Skip to content

Commit

Permalink
Merge pull request #826 from greg0ire/fix-crash
Browse files Browse the repository at this point in the history
Resolve path after checking it leads to an existing file
  • Loading branch information
jaapio authored Jan 21, 2024
2 parents 3a54583 + d056306 commit 91c5377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/guides-cli/bin/guides
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ if ($input->hasParameterOption('-vvv', true)) {

$containerFactory = new ContainerFactory([new ApplicationExtension()]);

$projectConfig = realpath($vendorDir . '/../guides.xml');
$projectConfig = $vendorDir . '/../guides.xml';
if (is_file($projectConfig)) {
$projectConfig = realpath($vendorDir . '/../guides.xml');
if ($verbosity === 3) {
echo 'Loading guides.xml from ' . $projectConfig . PHP_EOL;
}
Expand Down

0 comments on commit 91c5377

Please sign in to comment.