code cleanup
This commit is contained in:
parent
ba073784cb
commit
c926035d58
@ -132,7 +132,7 @@ function fsSize(callback) {
|
|||||||
}
|
}
|
||||||
if (_linux) {
|
if (_linux) {
|
||||||
cmd = 'df -lkPTx squashfs';
|
cmd = 'df -lkPTx squashfs';
|
||||||
execSync('cat /proc/mounts').toString().split('\n').filter(line => {
|
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
||||||
return line.startsWith('/');
|
return line.startsWith('/');
|
||||||
}).forEach((line) => {
|
}).forEach((line) => {
|
||||||
osMounts[line.split(' ')[0]] = line.toLowerCase().indexOf('rw') >= 0;
|
osMounts[line.split(' ')[0]] = line.toLowerCase().indexOf('rw') >= 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user