diff --git a/maubot/cli/commands/build.py b/maubot/cli/commands/build.py index 0f3201c..ce26d5f 100644 --- a/maubot/cli/commands/build.py +++ b/maubot/cli/commands/build.py @@ -126,8 +126,9 @@ def build(path: str, output: str, upload: bool) -> None: output = BytesIO() os.chdir(path) write_plugin(meta, output) - output.seek(0) if isinstance(output, str): print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{path}{Fore.GREEN}.{Fore.RESET}") + else: + output.seek(0) if upload: upload_plugin(output)