fsSize() WLS fix windows

This commit is contained in:
Sebastian Hildebrandt
2021-02-07 10:43:53 +01:00
parent 6f3c0d947b
commit 505395b522
+1 -1
View File
@@ -94,7 +94,7 @@ function fsSize(callback) {
macOsDisks = [];
}
}
if (_linux) { cmd = 'df -lkPTx squashfs | grep ^/'; }
if (_linux) { cmd = 'df -lkPTx squashfs | grep -E "^/|^.\\:"'; }
if (_freebsd || _openbsd || _netbsd) { cmd = 'df -lkPT'; }
exec(cmd, function (error, stdout) {
if (!error) {