mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
set run_command_str if run_command is set
This commit is contained in:
@ -538,10 +538,10 @@ def main():
|
|||||||
|
|
||||||
# if magic syntax used, try to run the command and error if it's not found, etc.
|
# 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
|
magic_stdout, magic_stderr, magic_exit_code = None, None, 0
|
||||||
|
if run_command:
|
||||||
if valid_command:
|
|
||||||
run_command_str = ' '.join(run_command)
|
run_command_str = ' '.join(run_command)
|
||||||
|
|
||||||
|
if valid_command:
|
||||||
try:
|
try:
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user