pass args correctly
Some checks are pending
continuous-integration/drone/push Build is failing

This commit is contained in:
shimunn
2019-01-18 00:53:02 +01:00
parent edf635ca9b
commit 1dbc9596c2

View File

@@ -83,8 +83,7 @@ impl ScriptListener {
fn mkcmd<'a>(&self, args: Vec<&'a str>) -> Command { fn mkcmd<'a>(&self, args: Vec<&'a str>) -> Command {
let mut cmd = Command::new("/bin/sh"); let mut cmd = Command::new("/bin/sh");
cmd.arg("-c"); cmd.arg("-c");
cmd.args((&self.script).to_str()); cmd.arg(format!("{} {}",(&self.script).to_str().unwrap(), args.join(" ")));
cmd.arg(format!("\"{}\"", args.join(" ")));
cmd cmd
} }