diff --git a/crates/remote/src/transport/wsl.rs b/crates/remote/src/transport/wsl.rs index eed7a19d923772167da08a2e1a4ec2a8448f170e..6ae57111f1bf88b80f11d9a974e45cb89b2dde35 100644 --- a/crates/remote/src/transport/wsl.rs +++ b/crates/remote/src/transport/wsl.rs @@ -98,11 +98,6 @@ impl WslRemoteConnection { .run_wsl_command("sh", &["-c", "echo $SHELL"]) .await .ok() - .and_then(|shell_path| { - Path::new(shell_path.trim()) - .file_name() - .map(|it| it.to_str().unwrap().to_owned()) - }) .unwrap_or_else(|| "bash".to_string())) }