mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
remove final \n from stderr string when printing
This commit is contained in:
@ -495,7 +495,7 @@ def main():
|
|||||||
if valid_command:
|
if valid_command:
|
||||||
magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command)
|
magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command)
|
||||||
if magic_stderr:
|
if magic_stderr:
|
||||||
print(magic_stderr, file=sys.stderr)
|
print(magic_stderr[:-1], file=sys.stderr)
|
||||||
elif run_command is None:
|
elif run_command is None:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user