From bde75f5ea0b7e681dfa7c94dd90aeaa2e871fbf0 Mon Sep 17 00:00:00 2001 From: Martin Zeithaml <66114686+Martin-Zeithaml@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:19:48 +0200 Subject: [PATCH] Remove only char which was added (#3603) Signed-off-by: Martin Zeithaml <66114686+Martin-Zeithaml@users.noreply.github.com> --- bin/libs/zos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/libs/zos.ts b/bin/libs/zos.ts index 94370a5f29..b49e81451b 100644 --- a/bin/libs/zos.ts +++ b/bin/libs/zos.ts @@ -25,6 +25,7 @@ export function tsoCommand(...args:string[]): { rc: number, out: string } { common.printTrace(` * Exit code: ${result.rc}`); common.printTrace(" * Output:"); if (result.out) { + result.out = result.out.substring(0, result.out.length - 1); common.printTrace(stringlib.paddingLeft(result.out, " ")); } } else { @@ -35,8 +36,7 @@ export function tsoCommand(...args:string[]): { rc: number, out: string } { common.printError(stringlib.paddingLeft(result.out, " ")); } } - //we strip the '.' we added above - return { rc: result.rc, out: result.out ? result.out.substring(0, result.out.length-1) : '' }; + return { rc: result.rc, out: result.out ? result.out : '' }; } export function operatorCommand(command: string): { rc: number, out: string } {