fix: added -e to echo call in telemetry disabling

This commit is contained in:
Observer KRypt0n_ 2023-06-28 09:08:01 +02:00
parent ee8b894ac6
commit 1cb1f045c0
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -24,14 +24,14 @@ pub fn disable_telemetry(sender: ComponentSender<App>) {
Command::new("pkexec")
.arg("sh")
.arg("-c")
.arg(format!("echo \"\\n{telemetry}\\n\" >> /etc/hosts"))
.arg(format!("echo -e \"\\n{telemetry}\\n\" >> /etc/hosts"))
.spawn()
}
else {
Command::new("sh")
.arg("-c")
.arg(format!("echo \"\\n{telemetry}\\n\" >> /etc/hosts"))
.arg(format!("echo -e \"\\n{telemetry}\\n\" >> /etc/hosts"))
.spawn()
};