diff --git a/CHANGELOG.md b/CHANGELOG.md index cf9b243..02ec399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) | | 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added | | 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue | | 5.1.1 | 2020-02-08 | `baseboard()` added memMax, memSlots, smaller improvements Raspberry | diff --git a/docs/history.html b/docs/history.html index 946f916..16b1515 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.2.0 + 2020-02-10 + system() fixed issue virtual detect (linux) + 5.2.0 2020-02-10 diff --git a/docs/index.html b/docs/index.html index 2615eaf..a6a6deb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.2.0
+
New Version: 5.2.1
diff --git a/lib/system.js b/lib/system.js index c73dec9..599118f 100644 --- a/lib/system.js +++ b/lib/system.js @@ -109,7 +109,7 @@ function system(callback) { } if (!result.virtual) { try { - const disksById = execSync('ls -1 /dev/disk/by-id/').toString(); + const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null').toString(); if (disksById.indexOf('_QEMU_') >= 0) { result.virtual = true; result.virtualHost = 'QEMU';