Correcting escaping
Still not 100% sure it's good
This commit is contained in:
@@ -139,11 +139,9 @@ impl RustDoomLauncher {
|
|||||||
Ok((launch, comms)) => {
|
Ok((launch, comms)) => {
|
||||||
let mut command_string = String::new();
|
let mut command_string = String::new();
|
||||||
// Feels like a bit of a hack, but it works I think
|
// Feels like a bit of a hack, but it works I think
|
||||||
command_string.push_str(&Cow::from(launch).to_string());
|
command_string.push_str(&format!(" '{}'", launch));
|
||||||
for c in comms {
|
for c in comms {
|
||||||
command_string.push_str(" \'");
|
command_string.push_str(&format!(" '{}'", c));
|
||||||
command_string.push_str(c);
|
|
||||||
command_string.push('\'')
|
|
||||||
}
|
}
|
||||||
command_string
|
command_string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user