systeminformation 5.22.3 → 5.22.4

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.
Files changed (2) hide show
  1. package/lib/osinfo.js +2 -2
  2. package/package.json +1 -1
package/lib/osinfo.js CHANGED
@@ -1122,8 +1122,8 @@ function uuid(callback) {
1122
1122
  });
1123
1123
  }
1124
1124
  if (_linux) {
1125
- const cmd = `echo -n "os: "; cat /var/lib/dbus/machine-id 2> /dev/null; echo;
1126
- echo -n "os: "; cat /etc/machine-id 2> /dev/null; echo;
1125
+ const cmd = `echo -n "os: "; cat /var/lib/dbus/machine-id 2> /dev/null ||
1126
+ cat /etc/machine-id 2> /dev/null; echo;
1127
1127
  echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
1128
1128
  exec(cmd, function (error, stdout) {
1129
1129
  const lines = stdout.toString().split('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.22.3",
3
+ "version": "5.22.4",
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)",