fix: make sure the shell exists (#10222)

This commit is contained in:
jif-oai
2026-01-30 14:18:31 +01:00
committed by GitHub
parent 6cee538380
commit 09d25e91e9
2 changed files with 18 additions and 7 deletions
+1
View File
@@ -137,6 +137,7 @@ fn get_shell_path(
let default_shell_path = get_user_shell_path();
if let Some(default_shell_path) = default_shell_path
&& detect_shell_type(&default_shell_path) == Some(shell_type)
&& file_exists(&default_shell_path).is_some()
{
return Some(default_shell_path);
}