Skip to content

Commit

Permalink
[v2.0.3] make sure src file exist before copying it
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Calef committed Feb 12, 2024
1 parent e12ec5b commit ddde083
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MagentoDotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public static function init(): void
return;
} else {
$dotenvSrc = ROOT_DIRECTORY . self::SRC_APP_ETC_DOTENV_FILE;
copy($dotenvSrc, $dotenvDest);
if (is_file($dotenvSrc)) {
copy($dotenvSrc, $dotenvDest);
}
}

$magentoBootstrapFile = ROOT_DIRECTORY . self::MAGENTO_BOOTSTRAP_FILE;
Expand Down

0 comments on commit ddde083

Please sign in to comment.