bot.exec: remove excessive newlines
This commit is contained in:
parent
ff38c73894
commit
e9ec555a96
1 changed files with 2 additions and 2 deletions
|
@ -122,10 +122,10 @@ exec.callback = async function (msg, line) {
|
||||||
const proc = spawn(line);
|
const proc = spawn(line);
|
||||||
let out = `Spawned ${proc.pid}: \`${line}'\n`;
|
let out = `Spawned ${proc.pid}: \`${line}'\n`;
|
||||||
proc.stdout.on("data", (data) => {
|
proc.stdout.on("data", (data) => {
|
||||||
out += data + "\n";
|
out += data;
|
||||||
});
|
});
|
||||||
proc.stderr.on("data", (data) => {
|
proc.stderr.on("data", (data) => {
|
||||||
out += data + "\n";
|
out += data;
|
||||||
});
|
});
|
||||||
|
|
||||||
proc.on("close", async (code) => {
|
proc.on("close", async (code) => {
|
||||||
|
|
Loading…
Reference in a new issue