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