From 79e40cb662a73b4015709e6f1dd6c094fa112d25 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 31 Oct 2023 14:09:38 -0700 Subject: [PATCH] Proess only "truthy" values of MSYSTEM env var (#2509) --- src/Config/DefaultsConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/DefaultsConfig.php b/src/Config/DefaultsConfig.php index a938ea746..fec838fea 100644 --- a/src/Config/DefaultsConfig.php +++ b/src/Config/DefaultsConfig.php @@ -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') {