From 1624bfc9ccb2dcbfdeea3b091c5d6e1889db8ae4 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 28 Jul 2021 16:50:27 +0200 Subject: [PATCH] osInfo() fix uefi detection (win) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/osinfo.js | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98c2df6..6c7ffde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.7.13 | 2021-07-28 | `osInfo()` fix uefi detection (win) | | 5.7.12 | 2021-07-27 | `osInfo()` fix uefi detection (win) | | 5.7.11 | 2021-07-27 | typescript typings fix `bluetoothDevices()` | | 5.7.10 | 2021-07-26 | typescript typings fix `processLoad()` | diff --git a/docs/history.html b/docs/history.html index bef06fa..8f5a9b5 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.7.13 + 2021-07-28 + osInfo() fix uefi detection (win) + 5.7.12 2021-07-27 diff --git a/docs/index.html b/docs/index.html index a8e7d8d..d251b4f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.7.12
+
New Version: 5.7.13
diff --git a/lib/osinfo.js b/lib/osinfo.js index 685ef9b..01d7b11 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -393,11 +393,11 @@ function isUefiWindows() { if (!error) { const line = stdout.toString() || ''; return resolve(line.toLowerCase().indexOf('efi') >= 0); + } else { + return resolve(false); } - return resolve(false); }); } - return resolve(false); }); } catch (e) { return resolve(false);