Move back onto main subprocess

This commit is contained in:
Jonathan Turner
2019-06-18 14:04:34 +12:00
parent 35ef78df67
commit a764a64161
4 changed files with 17 additions and 9 deletions

View File

@ -383,7 +383,16 @@ impl Leaf {
fn as_external_arg(&self) -> String {
match self {
Leaf::String(s) => format!("\"{}\"", s),
Leaf::String(s) => {
#[cfg(windows)]
{
format!("{}", s)
}
#[cfg(not(windows))]
{
format!("\"{}\"", s)
}
}
Leaf::Bare(path) => format!("{}", path.to_string()),
Leaf::Boolean(b) => format!("{}", b),
Leaf::Int(i) => format!("{}", i),