fsSize() fix excluding loop/snap devices

This commit is contained in:
Sebastian Hildebrandt
2020-01-10 22:52:49 +01:00
parent d5ba180dcd
commit 6805850049
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ function fsSize(callback) {
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
let cmd = '';
if (_darwin) cmd = 'df -lkP | grep ^/';
if (_linux) cmd = 'df -lkPT | grep ^/';
if (_linux) cmd = 'df -lkPTx squashfs | grep ^/';
if (_freebsd || _openbsd || _netbsd) cmd = 'df -lkPT';
exec(cmd, function (error, stdout) {
if (!error) {