feat: added formatting in telemetry disabling

This commit is contained in:
Observer KRypt0n_ 2023-06-28 11:52:24 +02:00
parent 40d0b8a399
commit 6600cd98c1

View file

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