mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: stdout.trim
This commit is contained in:
parent
a27c33e41e
commit
eacea6e902
1 changed files with 1 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ if (Update) {
|
|||
if (plugin) opts.cwd = `plugins/${plugin}`;
|
||||
return new Promise(resolve => {
|
||||
exec(cmd, { windowsHide: true, ...opts }, (error, stdout, stderr) => {
|
||||
stdout = stdout.trim();
|
||||
resolve({ error, stdout, stderr });
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue