mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-19 19:14:53 +00:00
fix: wrap single plugin cmd parts in single quotes
This commit is contained in:
parent
2bec37ee24
commit
35d268e01b
1 changed files with 7 additions and 3 deletions
|
@ -256,7 +256,7 @@ impl App {
|
|||
);
|
||||
None
|
||||
} else {
|
||||
Some(format!("'{}'", {
|
||||
Some({
|
||||
let mut cmd_parts = vec![cp
|
||||
.plugin
|
||||
.executable()
|
||||
|
@ -264,8 +264,12 @@ impl App {
|
|||
.to_string_lossy()
|
||||
.to_string()];
|
||||
cmd_parts.extend(cp.plugin.args.clone().unwrap_or_default());
|
||||
cmd_parts.join(" ")
|
||||
}))
|
||||
cmd_parts
|
||||
.iter()
|
||||
.map(|part| format!("'{part}'"))
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ")
|
||||
})
|
||||
}
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Reference in a new issue