mirror of
https://github.com/openai/codex.git
synced 2026-11-03 00:21:31 +00:00
fix: make sure the shell exists (#10222)
This commit is contained in:
1 parent
6cee538380
commit
09d25e91e9
2 files changed
+18
-7
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user