Skip to content

Commit 8f3c85d

Browse files
committed
ensure job output ends with \n
1 parent 89b736c commit 8f3c85d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/shared/BundleParent.handler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ export abstract class BundleParentHandler implements ICommandHandler {
5454
// either throw an Exception or return a success message.
5555
msg = await this.performAction(params);
5656

57+
// Add a newline char if its needed
58+
if (msg.slice(-1) !== "\n") {
59+
msg += "\n";
60+
}
61+
5762
// Issue the success message
5863
params.response.console.log(Buffer.from(msg));
5964
if (params.arguments.silent === undefined) {

0 commit comments

Comments
 (0)