Fix cross-platform shell approval fixtures

This commit is contained in:
Chris Bookholt
2026-07-03 09:27:44 -07:00
parent fbd4ac4a4d
commit cb648e6876
4 changed files with 21 additions and 11 deletions
+2 -2
View File
@@ -117,10 +117,10 @@ pub fn detect_shell_type(shell_path: impl AsRef<std::path::Path>) -> Option<Shel
let shell_path = shell_path.as_ref();
#[cfg(windows)]
{
return shell_path
shell_path
.as_os_str()
.to_str()
.and_then(detect_shell_type_from_hint);
.and_then(detect_shell_type_from_hint)
}
#[cfg(not(windows))]
match shell_path.as_os_str().to_str() {