remote: Keep full shell path on wsl (#39555)
Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user