Fix SSH remotes running Nushell (#25613)
- Closes: https://github.com/zed-industries/zed/issues/21005 Nushell does not support `uname -sm` So invoke `sh -c "uname -sm"` instead which will also work under nushell. See https://github.com/nushell/nushell/issues/12570 for the choice quote: "being posix/bash compliant is a non-goal" Release Notes: - Fixed ssh remotes running Nushell
This commit is contained in:
parent
e600e71c1c
commit
2d050a8130
1 changed files with 1 additions and 1 deletions
|
@ -1634,7 +1634,7 @@ impl SshRemoteConnection {
|
|||
}
|
||||
|
||||
async fn platform(&self) -> Result<SshPlatform> {
|
||||
let uname = self.socket.run_command("uname", &["-sm"]).await?;
|
||||
let uname = self.socket.run_command("sh", &["-c", "uname -sm"]).await?;
|
||||
let Some((os, arch)) = uname.split_once(" ") else {
|
||||
Err(anyhow!("unknown uname: {uname:?}"))?
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue