Skip to content

Commit

Permalink
Proess only "truthy" values of MSYSTEM env var (#2509)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Oct 31, 2023
1 parent 1d89e20 commit 79e40cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/DefaultsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function getHomeDir()
$home = getenv('HOME');
if (!$home) {
$system = '';
if (getenv('MSYSTEM') !== null) {
if (getenv('MSYSTEM')) {
$system = strtoupper(substr(getenv('MSYSTEM'), 0, 4));
}
if ($system != 'MING') {
Expand Down

0 comments on commit 79e40cb

Please sign in to comment.