Skip to content

Commit

Permalink
Do not remove the new line separator on kubeconfie file fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Dec 17, 2024
1 parent 2de9781 commit c84fe3e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ export async function exec(
return;
}

let message = Buffer.from(event.data.substr(1), 'base64').toString('utf-8');
message = message.replace(/\n/g, ' ').trim();
const message = Buffer.from(event.data.substr(1), 'base64').toString('utf-8').trim();

if (channel === CHANNELS[CHANNELS.STD_OUT]) {
stdOut += message;
Expand Down

0 comments on commit c84fe3e

Please sign in to comment.