Skip to content

Commit

Permalink
Check $_SERVER first for env value
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed May 25, 2021
1 parent 827a412 commit 06e4bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Commands/Utilities/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function run(array $params)
{
if ($params === [])
{
CLI::write(sprintf('Your environment is currently set as %s.', CLI::color(ENVIRONMENT, 'green')));
CLI::write(sprintf('Your environment is currently set as %s.', CLI::color($_SERVER['CI_ENVIRONMENT'] ?? ENVIRONMENT, 'green')));
CLI::newLine();

return;
Expand Down

0 comments on commit 06e4bd9

Please sign in to comment.