fsSize() fix parsing linux (df)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ function fsSize(callback) {
|
||||
}
|
||||
|
||||
function isLinuxTmpFs(fs) {
|
||||
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged', 'fuse.'];
|
||||
const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged'];
|
||||
let result = false;
|
||||
linuxTmpFileSystems.forEach(linuxFs => {
|
||||
if (fs.toLowerCase().indexOf(linuxFs) >= 0) result = true;
|
||||
|
||||
Reference in New Issue
Block a user