1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00

remove final \n from stderr string when printing

This commit is contained in:
Kelly Brazil
2021-05-10 18:50:59 -07:00
parent 19b540041a
commit da904e4770
+1 -1
View File
@@ -495,7 +495,7 @@ def main():
if valid_command:
magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command)
if magic_stderr:
print(magic_stderr, file=sys.stderr)
print(magic_stderr[:-1], file=sys.stderr)
elif run_command is None:
pass
else: