This commit is contained in:
Thomas E Lackey 2020-06-15 11:33:50 -05:00
parent 0397e2b36b
commit eda1c2c792

View File

@ -28,10 +28,10 @@ const getVersionInfo = () => {
// TODO(telackey): Get from config (or figure out a better way to do this).
const versionFile = '/opt/xbox/VERSION';
if (fs.existsSync(versionFile)) {
return fs.readFileSync(versionFile, { encoding: 'UTF8' }).replace(/^\s+|\s+$/g, '')
return fs.readFileSync(versionFile, { encoding: 'UTF8' }).replace(/^\s+|\s+$/g, '');
}
return undefined;
}
};
/**
* Get system inforamtion.