From 99ad2e18fbd25ce927286d2c009099f600176a88 Mon Sep 17 00:00:00 2001 From: branberry Date: Tue, 17 Oct 2023 08:59:31 -0500 Subject: [PATCH] [DOP-4033]: Add empty string to join to remove commas --- src/commands/src/helpers/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/src/helpers/index.ts b/src/commands/src/helpers/index.ts index a18f7d894..b4b9f901e 100644 --- a/src/commands/src/helpers/index.ts +++ b/src/commands/src/helpers/index.ts @@ -120,11 +120,11 @@ export async function executeAndPipeCommands( console.error('Options provided: ', cmdToParams.options); if (outputText) { - console.error('output', outputText.join()); + console.error('output', outputText.join('')); } if (errorText) { - console.error('error', errorText.join()); + console.error('error', errorText.join('')); } reject(new ExecuteCommandError('The command failed', { exitCode, outputText, errorText })); @@ -132,8 +132,8 @@ export async function executeAndPipeCommands( } resolve({ - outputText: outputText.join(), - errorText: errorText.join(), + outputText: outputText.join(''), + errorText: errorText.join(''), }); }); }); @@ -186,11 +186,11 @@ export async function executeCliCommand({ console.error('Options provided: ', options); if (outputText) { - console.error(outputText.join()); + console.error(outputText.join('')); } if (errorText) { - console.error(errorText.join()); + console.error(errorText.join('')); } reject(new ExecuteCommandError('The command failed', exitCode)); @@ -198,8 +198,8 @@ export async function executeCliCommand({ } resolve({ - outputText: outputText.join(), - errorText: errorText.join(), + outputText: outputText.join(''), + errorText: errorText.join(''), }); }); });