diff --git a/commands/util/exec.js b/commands/util/exec.js index eccd3d3b..d2da01a0 100644 --- a/commands/util/exec.js +++ b/commands/util/exec.js @@ -34,7 +34,7 @@ module.exports = class ExecCommand extends Command { exec(command) { try { - const stdout = execSync(command, { timeout: 30000 }); + const stdout = execSync(command, { timeout: 30000, encoding: 'utf8' }); return { err: false, std: stdout.trim() }; } catch (err) { return { err: true, std: err.stderr.trim() };