From 9e78a7108221f5686cc6eb135ff63e1cedb2f1a2 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 5 Oct 2023 20:06:14 +0200 Subject: [PATCH] osInfo() fix getLogoFile (BSD) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/osinfo.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b0f9b1..9ff5e32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.21.11 | 2023-10-05 | `osInfo()` fix getLogoFile (BSD) | | 5.21.10 | 2023-10-04 | `wifiNetworks()` improved parsing (macOS) | | 5.21.9 | 2023-09-25 | `general` code cleanup | | 5.21.8 | 2023-09-20 | `battery()` fixed parsing (linux) | diff --git a/docs/history.html b/docs/history.html index 4e20045..3eb6267 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.21.11 + 2023-10-05 + osInfo() fix getLogoFile (BSD) + 5.21.10 2023-10-04 diff --git a/docs/index.html b/docs/index.html index 1edba66..4c896eb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.21.10
+
New Version: 5.21.11
diff --git a/lib/osinfo.js b/lib/osinfo.js index 4c87044..e9b6448 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -272,7 +272,7 @@ function osInfo(callback) { exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) { let lines = stdout.toString().split('\n'); const distro = util.getValue(lines, 'kern.ostype'); - const logofile = util.getLogoFile(distro); + const logofile = getLogoFile(distro); const release = util.getValue(lines, 'kern.osrelease').split('-')[0]; const serial = util.getValue(lines, 'kern.uuid'); const bootmethod = util.getValue(lines, 'machdep.bootmethod');