mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-02-03 14:30:50 +03:00
fix: added -e
to echo
call in telemetry disabling
This commit is contained in:
parent
ee8b894ac6
commit
1cb1f045c0
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue