mirror of
https://github.com/usestrix/strix.git
synced 2026-08-19 01:55:46 +02:00
fix(update): never show update prompt/notice in non-interactive runs
This commit is contained in:
@@ -807,7 +807,8 @@ def display_completion_message(args: argparse.Namespace, results_path: Path) ->
|
||||
"[#60a5fa]discord.gg/strix-ai[/]"
|
||||
)
|
||||
console.print()
|
||||
notify_update(console)
|
||||
if not args.non_interactive:
|
||||
notify_update(console)
|
||||
|
||||
|
||||
def pull_docker_image() -> None:
|
||||
@@ -872,7 +873,7 @@ def main() -> None:
|
||||
apply_config_override(validate_config_file(args.config))
|
||||
|
||||
start_background_check()
|
||||
if prompt_update_if_available(Console()):
|
||||
if not args.non_interactive and prompt_update_if_available(Console()):
|
||||
if is_binary_install() and sys.platform != "win32":
|
||||
os.execv(sys.executable, sys.argv) # noqa: S606 # nosec B606
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user