From a205afb6f355edbb4b98200a980b9601ed0f0658 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 12 May 2021 13:44:15 -0700 Subject: [PATCH] set run_command_str if run_command is set --- jc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index c8e4aac6..07e9d4b2 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -538,10 +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 - - if valid_command: + if run_command: run_command_str = ' '.join(run_command) + if valid_command: try: magic_stdout, magic_stderr, magic_exit_code = run_user_command(run_command) if magic_stderr: