removed incorrect replace
This commit is contained in:
parent
3edf4aa95a
commit
e4ff4eca09
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let tmp = String::from_utf8_lossy(&output.stdout).into_owned();
|
let tmp = String::from_utf8_lossy(&output.stdout).into_owned();
|
||||||
|
|
||||||
if !tmp.contains("sensor") {
|
if !tmp.contains("sensor") {
|
||||||
drive_temps.push(tmp.replace("\n", "Not running as sudo?"));
|
drive_temps.push(tmp.replace("\n", ""));
|
||||||
} else {
|
} else {
|
||||||
drive_temps.push(tmp[0..9].to_string() + " No Sensor");
|
drive_temps.push(tmp[0..9].to_string() + " No Sensor");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue