mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 16:34:21 +09:00
fix for wrong lm_sensors error output #66
This commit is contained in:
@@ -49,6 +49,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil {
|
||||
// https://github.com/UshakovVasilii/gnome-shell-extension-freon/issues/114#issuecomment-491613545
|
||||
let lineRemoved = this._output.filter(l => l.trim() !== ',').join('\n');
|
||||
let errorRemoved = lineRemoved.replace(/ERROR.*Can't read/, "");
|
||||
errorRemoved = errorRemoved.replace(/ERROR.*I/O error/, "");
|
||||
data = JSON.parse(errorRemoved);
|
||||
} catch (e) {
|
||||
global.log(e.toString());
|
||||
|
||||
Reference in New Issue
Block a user