Skip to content

Commit

Permalink
Remove only char which was added (#3603)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml authored Oct 11, 2023
1 parent 8f981ac commit bde75f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/libs/zos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 } {
Expand Down

0 comments on commit bde75f5

Please sign in to comment.