Skip to content

Commit 91c5377

Browse files
authored
Merge pull request #826 from greg0ire/fix-crash
Resolve path after checking it leads to an existing file
2 parents 3a54583 + d056306 commit 91c5377

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/guides-cli/bin/guides

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ if ($input->hasParameterOption('-vvv', true)) {
4040

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

43-
$projectConfig = realpath($vendorDir . '/../guides.xml');
43+
$projectConfig = $vendorDir . '/../guides.xml';
4444
if (is_file($projectConfig)) {
45+
$projectConfig = realpath($vendorDir . '/../guides.xml');
4546
if ($verbosity === 3) {
4647
echo 'Loading guides.xml from ' . $projectConfig . PHP_EOL;
4748
}

0 commit comments

Comments
 (0)