mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-21 20:36:01 +03:00
feat: added formatting in telemetry disabling
This commit is contained in:
parent
40d0b8a399
commit
6600cd98c1
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue