Skip to content

Commit

Permalink
Fix EnvExampleStep source treated as relative
Browse files Browse the repository at this point in the history
See #105
  • Loading branch information
gmazzap committed Nov 25, 2021
1 parent ce4032f commit 73e66b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Step/EnvExampleStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function run(Config $config, Paths $paths): int
$isAsk = $source === OptionalStep::ASK;

if (!$isAsk && is_string($source)) {
$realpath = realpath($paths->root($source));
$realpath = realpath($source);
if (!$realpath) {
$this->error = "{$source} is not a valid valid relative path to env-example file.";

Expand Down

0 comments on commit 73e66b2

Please sign in to comment.