code cleanup
This commit is contained in:
parent
ba073784cb
commit
c926035d58
@ -132,7 +132,7 @@ function fsSize(callback) {
|
||||
}
|
||||
if (_linux) {
|
||||
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('/');
|
||||
}).forEach((line) => {
|
||||
osMounts[line.split(' ')[0]] = line.toLowerCase().indexOf('rw') >= 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user