systeminformation 5.18.1 → 5.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/filesystem.js +2 -2
- package/package.json +1 -1
package/lib/filesystem.js
CHANGED
|
@@ -137,7 +137,7 @@ function fsSize(drive, callback) {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
if (_linux) {
|
|
140
|
-
cmd = 'df -lkPTx squashfs';
|
|
140
|
+
cmd = 'export LC_ALL=C; df -lkPTx squashfs; unset LC_ALL';
|
|
141
141
|
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
|
142
142
|
return line.startsWith('/');
|
|
143
143
|
}).forEach((line) => {
|
|
@@ -158,7 +158,7 @@ function fsSize(drive, callback) {
|
|
|
158
158
|
return item.fs.toLowerCase().indexOf(drive.toLowerCase()) >= 0 || item.mount.toLowerCase().indexOf(drive.toLowerCase()) >= 0;
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
if (!error || data.length) {
|
|
161
|
+
if ((!error || data.length) && stdout.toString().trim() !== '') {
|
|
162
162
|
if (callback) {
|
|
163
163
|
callback(data);
|
|
164
164
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.2",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|