diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3918870..79d7145 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
+| 4.30.8 | 2020-11-30 | `fsSize()` catch error (mac OS) |
| 4.30.7 | 2020-11-29 | `cpuTemperature()` rewrite hwmon parsing |
| 4.30.6 | 2020-11-27 | wmic added default windows path (windows) |
| 4.30.5 | 2020-11-26 | adapted security update (prototype pollution prevention) |
diff --git a/docs/history.html b/docs/history.html
index 41704e3..0fdb9c9 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -83,9 +83,14 @@
+
+ | 4.30.8 |
+ 2020-11-30 |
+ fsSize() catch error (mac OS) |
+
| 4.30.7 |
- 2020-11-28 |
+ 2020-11-29 |
cpuTemperature() rewrite hwmon parsing (linux) |
diff --git a/docs/index.html b/docs/index.html
index e6e8feb..c3dd11e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -169,7 +169,7 @@
systeminformation
- Current Version: 4.30.7
+ Current Version: 4.30.8
diff --git a/lib/filesystem.js b/lib/filesystem.js
index e50ddff..70b62d0 100755
--- a/lib/filesystem.js
+++ b/lib/filesystem.js
@@ -84,9 +84,13 @@ function fsSize(callback) {
let cmd = '';
if (_darwin) {
cmd = 'df -kP';
- macOsDisks = execSync('diskutil list').toString().split('\n').filter(line => {
- return !line.startsWith('/') && line.indexOf(':') > 0
- });
+ try {
+ macOsDisks = execSync('diskutil list').toString().split('\n').filter(line => {
+ return !line.startsWith('/') && line.indexOf(':') > 0
+ });
+ } catch (e) {
+ macOsDisks = []
+ }
}
if (_linux) cmd = 'df -lkPTx squashfs | grep ^/';
if (_freebsd || _openbsd || _netbsd) cmd = 'df -lkPT';