osInfo() fix getLogoFile (BSD)

This commit is contained in:
Sebastian Hildebrandt 2023-10-05 20:06:14 +02:00
parent 5cd179add5
commit 9e78a71082
4 changed files with 8 additions and 2 deletions

View File

@ -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) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.21.11</th>
<td>2023-10-05</td>
<td><span class="code">osInfo()</span> fix getLogoFile (BSD)</td>
</tr>
<tr>
<th scope="row">5.21.10</th>
<td>2023-10-04</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.21.10</span></div>
<div class="version">New Version: <span id="version">5.21.11</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -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');