This commit is contained in:
Dragon Fire
2020-09-15 15:25:09 -04:00
parent c4ab56a535
commit 2ffbe5e0d6
+1 -1
View File
@@ -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() };