Skip to content

Commit 69da3d6

Browse files
committed
Fix env detection
1 parent e1db2f7 commit 69da3d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/bootstrap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
$envFile = null;
1010

1111
foreach ([$confDir, 'spm_projects.d', '.config/spm_projects.d', '.spm_projects.d'] as $test) {
12-
if (file_exists($envFile = sprintf('%s/%s/.env', $homeDir, $test))) {
12+
$test = sprintf('%s/%s/.env', $homeDir, $test);
13+
14+
if (file_exists($test)) {
15+
$envFile = $test;
1316
break;
1417
}
1518
}

0 commit comments

Comments
 (0)