diff --git a/commands/update.js b/commands/update.js index 3a03496..f2304a2 100644 --- a/commands/update.js +++ b/commands/update.js @@ -22,11 +22,9 @@ module.exports = { let regex = /.{0,7} / let commitMsg = stdout.replace(regex, "") process.stdout.write(stdout) - msg.edit(`${sendText}\n\nNewest commit:\n${stdout.split(" ")[1]}`) + msg.edit(`${sendText}\n\nNewest commit:\n${commitMsg}`) if (err) console.log(stderr) - }) - }) } if (err) {