From ab30afd7bc4ac0b57b644ecf059497538c55dc9b Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 22:00:08 +0000 Subject: [PATCH] Change result return --- src/class/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index a24364d..f050ef6 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -35,7 +35,7 @@ export default class Util { try { if (!options.env) options.env = { HOME: '/root' }; const res = await ex(command, options); - result = res.stderr || res.stdout; + result = `${res.stdout}${res.stderr}`; } catch (err) { return Promise.reject(new Error(`Command failed: ${err.cmd}\n${err.stderr || err.stdout}`)); }