From eacea6e9028128a6007ea6a207d6afd640dbfc31 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Tue, 20 Aug 2024 14:57:30 +0800 Subject: [PATCH] fix: stdout.trim --- lib/update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/update.js b/lib/update.js index ba72d30..8f159d5 100644 --- a/lib/update.js +++ b/lib/update.js @@ -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 }); }); });