From c407184a6098a476d17b825a4a464c164ae841c6 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 24 Jan 2025 13:13:19 +0100 Subject: [PATCH] Note for future self (the dev, not the class) --- npbackup/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npbackup/__main__.py b/npbackup/__main__.py index 9a54ec4..08e13fb 100644 --- a/npbackup/__main__.py +++ b/npbackup/__main__.py @@ -403,6 +403,8 @@ This is free software, and you are welcome to redistribute it under certain cond json_error_logging(False, msg, "critical") sys.exit(71) + # This must be run before any other command since it's the way we're checking succesful upgrade processes + # So any pre-upgrade process command shall be bypassed when this is executed if args.check_config_file: json_error_logging(True, "Config file seems valid", "info") sys.exit(0)