mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 22:29:01 +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
|
None
|
||||||
} else {
|
} else {
|
||||||
Some(format!("'{}'", {
|
Some({
|
||||||
let mut cmd_parts = vec![cp
|
let mut cmd_parts = vec![cp
|
||||||
.plugin
|
.plugin
|
||||||
.executable()
|
.executable()
|
||||||
|
@ -264,8 +264,12 @@ impl App {
|
||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.to_string()];
|
.to_string()];
|
||||||
cmd_parts.extend(cp.plugin.args.clone().unwrap_or_default());
|
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 {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue