We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2496423 commit b0dfd45Copy full SHA for b0dfd45
openandroidinstaller/tooling.py
@@ -42,7 +42,6 @@ def run_command(
42
enable_logging: bool = True,
43
) -> TerminalResponse:
44
"""Run a command with a tool (adb, fastboot, heimdall)."""
45
- yield f"${full_command}"
46
# split the command and extract the tool part
47
tool, *command = shlex.split(full_command)
48
if tool not in ["adb", "fastboot", "heimdall"]:
@@ -55,10 +54,11 @@ def run_command(
55
54
else:
56
command_list = [str(bin_path.joinpath(Path(f"{tool}")))] + command
57
si = None
58
- if enable_logging:
59
- logger.info(f"Run command: {command_list}")
60
if target:
61
command_list.append(f"{target}")
+ if enable_logging:
+ logger.info(f"Run command: {command_list}")
+ yield f"${full_command}"
62
# run the command
63
with subprocess.Popen(
64
command_list,
0 commit comments