Skip to content

Commit

Permalink
tools: fix license2rtf exit code is not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u committed May 29, 2022
1 parent 255c643 commit 894af9c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tools/license2rtf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,15 @@ class RtfGenerator extends Stream {
stdin.setEncoding('utf-8');
stdin.resume();

await pipeline(
stdin,
new LineSplitter(),
new ParagraphParser(),
new Unwrapper(),
new RtfGenerator(),
stdout,
);
async function main() {
await pipeline(
stdin,
new LineSplitter(),
new ParagraphParser(),
new Unwrapper(),
new RtfGenerator(),
stdout,
);
}

main().catch(console.error);

0 comments on commit 894af9c

Please sign in to comment.