From c926035d586bcfe3273a590cddf79ea5e1bcb35c Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sat, 3 Dec 2022 22:29:06 +0100 Subject: [PATCH] code cleanup --- lib/filesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.js b/lib/filesystem.js index 35df0be..fbe31fa 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -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;