fsSize() fixed syntax error

This commit is contained in:
Sebastian Hildebrandt 2023-08-09 06:43:17 +02:00
parent 566f5b2ff2
commit 2d6a9214f1
4 changed files with 8 additions and 2 deletions

View File

@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.18.14 | 2023-08-09 | `fsSIze()` fixed syntax error |
| 5.18.13 | 2023-08-08 | `mem()` fixed error handling |
| 5.18.12 | 2023-08-05 | `fsSize()` rw /snap/ issue fixed (linux) |
| 5.18.11 | 2023-08-04 | `bluetooth()` improved parsing, macOS Sonoma detection |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.18.14</th>
<td>2023-08-09</td>
<td><span class="code">fsSize()</span> fixed syntax error</td>
</tr>
<tr>
<th scope="row">5.18.13</th>
<td>2023-08-08</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.18.13</span></div>
<div class="version">New Version: <span id="version">5.18.14</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

@ -142,7 +142,7 @@ function fsSize(drive, callback) {
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
return line.startsWith('/');
}).forEach((line) => {
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] ?? false;
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] || false;
if (line.toLowerCase().indexOf('/snap/') === -1) {
osMounts[line.split(' ')[0]] = ((line.toLowerCase().indexOf('rw,') >= 0 || line.toLowerCase().indexOf(' rw ') >= 0));
}