Try zsh, bash then sh (#1000)
This commit is contained in:
@@ -9,8 +9,10 @@ pub fn get_shell_command() -> (&'static str, &'static str) {
|
||||
if cfg!(windows) {
|
||||
("cmd", "/C")
|
||||
} else {
|
||||
// Prefer bash if available, fallback to sh
|
||||
if std::path::Path::new("/bin/bash").exists() {
|
||||
// Prefer zsh or bash if available, fallback to sh
|
||||
if std::path::Path::new("/bin/zsh").exists() {
|
||||
("zsh", "-c")
|
||||
} else if std::path::Path::new("/bin/bash").exists() {
|
||||
("bash", "-c")
|
||||
} else {
|
||||
("sh", "-c")
|
||||
|
||||
Reference in New Issue
Block a user