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

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-10-05 20:29:58 +02:00
committed by GitHub
parent cd61bfbd42
commit d5a4890142
-5
View File
@@ -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()))
}