fsSize() WLS fix windows
This commit is contained in:
parent
6f3c0d947b
commit
505395b522
@ -94,7 +94,7 @@ function fsSize(callback) {
|
|||||||
macOsDisks = [];
|
macOsDisks = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_linux) { cmd = 'df -lkPTx squashfs | grep ^/'; }
|
if (_linux) { cmd = 'df -lkPTx squashfs | grep -E "^/|^.\\:"'; }
|
||||||
if (_freebsd || _openbsd || _netbsd) { cmd = 'df -lkPT'; }
|
if (_freebsd || _openbsd || _netbsd) { cmd = 'df -lkPT'; }
|
||||||
exec(cmd, function (error, stdout) {
|
exec(cmd, function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user