From 505395b5228252698470c6222cd252e282a69c64 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sun, 7 Feb 2021 10:43:53 +0100 Subject: [PATCH] fsSize() WLS fix windows --- lib/filesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filesystem.js b/lib/filesystem.js index 291918c..e883d25 100755 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -94,7 +94,7 @@ function fsSize(callback) { macOsDisks = []; } } - if (_linux) { cmd = 'df -lkPTx squashfs | grep ^/'; } + if (_linux) { cmd = 'df -lkPTx squashfs | grep -E "^/|^.\\:"'; } if (_freebsd || _openbsd || _netbsd) { cmd = 'df -lkPT'; } exec(cmd, function (error, stdout) { if (!error) {