File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ def run_command(
42
42
enable_logging : bool = True ,
43
43
) -> TerminalResponse :
44
44
"""Run a command with a tool (adb, fastboot, heimdall)."""
45
- yield f"${ full_command } "
46
45
# split the command and extract the tool part
47
46
tool , * command = shlex .split (full_command )
48
47
if tool not in ["adb" , "fastboot" , "heimdall" ]:
@@ -55,10 +54,11 @@ def run_command(
55
54
else :
56
55
command_list = [str (bin_path .joinpath (Path (f"{ tool } " )))] + command
57
56
si = None
58
- if enable_logging :
59
- logger .info (f"Run command: { command_list } " )
60
57
if target :
61
58
command_list .append (f"{ target } " )
59
+ if enable_logging :
60
+ logger .info (f"Run command: { command_list } " )
61
+ yield f"${ full_command } "
62
62
# run the command
63
63
with subprocess .Popen (
64
64
command_list ,
You can’t perform that action at this time.
0 commit comments