Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

remote: Remove excess quoting in WSL `build_command` (#38380)

Cole Miller202dcb122f71
diff --git a/crates/remote/src/transport/wsl.rs b/crates/remote/src/transport/wsl.rs
index 6b386ee361c..160a953129e 100644
--- a/crates/remote/src/transport/wsl.rs
+++ b/crates/remote/src/transport/wsl.rs
@@ -400,7 +400,7 @@ impl RemoteConnection for WslRemoteConnection {
"--".to_string(),
self.shell.clone(),
"-c".to_string(),
- shlex::try_quote(&script)?.to_string(),
+ script,
]
} else {
vec![
@@ -411,7 +411,7 @@ impl RemoteConnection for WslRemoteConnection {
"--".to_string(),
self.shell.clone(),
"-c".to_string(),
- shlex::try_quote(&script)?.to_string(),
+ script,
]
};