api: quote args when being executed

This commit is contained in:
Thomas Hobson 2021-03-14 13:57:14 +13:00
parent 7b57bef167
commit d529384f21
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Job {
const proc_call = [
...prlimit,
...unshare,
'bash',file, ...args
'bash',file, ...args.map(x=>`"${x}"`)
];
var stdout = '';