osInfo() fix getLogoFile (BSD)

This commit is contained in:
Sebastian Hildebrandt
2023-10-05 20:06:14 +02:00
parent 5cd179add5
commit 9e78a71082
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ function osInfo(callback) {
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
let lines = stdout.toString().split('\n');
const distro = util.getValue(lines, 'kern.ostype');
const logofile = util.getLogoFile(distro);
const logofile = getLogoFile(distro);
const release = util.getValue(lines, 'kern.osrelease').split('-')[0];
const serial = util.getValue(lines, 'kern.uuid');
const bootmethod = util.getValue(lines, 'machdep.bootmethod');