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:
parent
69fd23e947
commit
44d1f512f8
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue