Skip to content

Commit

Permalink
CLI-1171: updated env variable testing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jura authored Oct 20, 2023
1 parent 23d3e32 commit dc94e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/LocalMachineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static function getHomeDir(): string {
$home = getenv('HOME');
if (!$home) {
$system = '';
if (getenv('MSYSTEM') !== NULL) {
if (getenv('MSYSTEM')) {

Check warning on line 226 in src/Helpers/LocalMachineHelper.php

View check run for this annotation

Codecov / codecov/patch

src/Helpers/LocalMachineHelper.php#L226

Added line #L226 was not covered by tests
$system = strtoupper(substr(getenv('MSYSTEM'), 0, 4));
}
if ($system !== 'MING') {
Expand Down

0 comments on commit dc94e65

Please sign in to comment.