diff --git a/CHANGELOG.md b/CHANGELOG.md index bf8f487..d911726 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 | diff --git a/docs/history.html b/docs/history.html index 618f2f5..12fd524 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.18.14 + 2023-08-09 + fsSize() fixed syntax error + 5.18.13 2023-08-08 diff --git a/docs/index.html b/docs/index.html index acb4285..a78e255 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.18.13
+
New Version: 5.18.14
diff --git a/lib/filesystem.js b/lib/filesystem.js index c7e103d..e00bd68 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -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)); }