Skip to content

Commit 2592dbb

Browse files
fix: dynamic path for .env file
Co-authored-by: Michal Sniatala <[email protected]>
1 parent 92bfc1e commit 2592dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Commands/Utilities/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function run(array $params)
135135
private function writeNewEnvironmentToEnvFile(string $newEnv): bool
136136
{
137137
$baseEnv = ROOTPATH . 'env';
138-
$envFile = (new Paths())->envDirectory ?? ROOTPATH . '.env';
138+
$envFile = ((new Paths())->envDirectory ?? ROOTPATH) . '.env';
139139

140140
if (! is_file($envFile)) {
141141
if (! is_file($baseEnv)) {

0 commit comments

Comments
 (0)