We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdc89c7 commit 86b98daCopy full SHA for 86b98da
src/utils/cskburn.ts
@@ -76,15 +76,19 @@ export async function cskburn(
76
}
77
78
command.stdout.on('data', async (data: Uint8Array) => {
79
- const line = await decode(data);
80
- outputs.push(line);
81
- handleOutput(line.trim());
+ const dataStr = await decode(data);
+ outputs.push(dataStr);
+ dataStr.split('\n').forEach((line) => {
82
+ handleOutput(line.trim());
83
+ });
84
});
85
86
command.stderr.on('data', async (data: Uint8Array) => {
87
88
89
90
91
92
93
94
command.once('close', (data) => {
0 commit comments