Use /usr/bin/env to run bash restart script (#33936)

Closes #33935

Release Notes:

- Use `/usr/bin/env` to launch the bash restart script
This commit is contained in:
Alvaro Parker authored and GitHub committed 2025-07-05 00:27:21 +00:00
1 parent 15990d4071
commit 06455fe326
1 file changed
+2 -2
+2 -2
View File
@@ -200,8 +200,8 @@ impl<P: LinuxClient + 'static> Platform for P {
app_path = app_path.display()
);
// execute the script using /bin/bash
let restart_process = Command::new("/bin/bash")
let restart_process = Command::new("/usr/bin/env")
.arg("bash")
.arg("-c")
.arg(script)
.process_group(0)