mirror of
https://github.com/openai/codex.git
synced 2026-10-25 18:28:38 +00:00
fix: satisfy shell detection clippy
Co-authored-by: Codex noreply@openai.com
This commit is contained in:
co-authored by
Codex noreply@openai.com
parent
2bd0700b76
commit
ad69df568d
@@ -1,3 +1,5 @@
|
||||
use std::path::Path;
|
||||
#[cfg(test)]
|
||||
use std::path::PathBuf;
|
||||
|
||||
/// Shell executable families that Codex treats as known command wrappers.
|
||||
@@ -10,7 +12,7 @@ pub enum ShellType {
|
||||
Cmd,
|
||||
}
|
||||
|
||||
pub fn detect_shell_type(shell_path: &PathBuf) -> Option<ShellType> {
|
||||
pub fn detect_shell_type(shell_path: &Path) -> Option<ShellType> {
|
||||
let shell_text = shell_path.as_os_str().to_str()?;
|
||||
// Keep this exact: repo-local files named like shells must not inherit
|
||||
// shell-wrapper trust in approval or display decisions.
|
||||
|
||||
Reference in New Issue
Block a user