remote: Keep full shell path on wsl (#39555)

Lukas Wirth created

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Change summary

crates/remote/src/transport/wsl.rs | 5 -----
1 file changed, 5 deletions(-)

Detailed changes

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()))
     }