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 2025-07-04 20:27:21 -04:00 committed by GitHub
parent 69fd23e947
commit 44d1f512f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)