1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

move run_command_str variable

This commit is contained in:
Kelly Brazil
2021-05-12 13:38:08 -07:00
parent b6c8d6d01d
commit a6d983dd8f

View File

@ -538,9 +538,10 @@ def main():
# if magic syntax used, try to run the command and error if it's not found, etc.
magic_stdout, magic_stderr, magic_exit_code = None, None, 0
run_command_str = ' '.join(run_command)
if valid_command:
run_command_str = ' '.join(run_command)
try:
magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command)
if magic_stderr: