fsSize() add network drives (linux) wip
This commit is contained in:
parent
636fa3feda
commit
7a70834dd4
@ -150,7 +150,7 @@ function fsSize(drive, callback) {
|
||||
}
|
||||
if (_linux) {
|
||||
try {
|
||||
cmd = 'export LC_ALL=C; df -lkPTx squashfs; unset LC_ALL';
|
||||
cmd = 'export LC_ALL=C; df -kPTx squashfs; unset LC_ALL';
|
||||
execSync('cat /proc/mounts 2>/dev/null', util.execOptsLinux)
|
||||
.toString()
|
||||
.split('\n')
|
||||
@ -169,7 +169,7 @@ function fsSize(drive, callback) {
|
||||
}
|
||||
if (_freebsd || _openbsd || _netbsd) {
|
||||
try {
|
||||
cmd = 'df -lkPT';
|
||||
cmd = 'df -kPT';
|
||||
execSync('mount')
|
||||
.toString()
|
||||
.split('\n')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user