]> git.seodisparate.com - AnotherAURHelper/commitdiff
Add path validation for "signingGPG" directory
authorStephen Seo <seo.disparate@gmail.com>
Sat, 4 Jun 2022 08:17:15 +0000 (17:17 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 4 Jun 2022 08:18:19 +0000 (17:18 +0900)
update.py

index 97972468a47654ccae2dbdda8e82fb9cfc35e83e..067a2ff6251b597b2321b15a3194ce051f6c0661 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -965,6 +965,9 @@ def validate_and_verify_paths(other_state):
     if not os.path.exists(other_state['gpg_home']):
         log_print(f"ERROR: checkingGPG at "{other_state['gpg_home']}" does not exist")
         sys.exit(1)
+    if 'signing_gpg_dir' in other_state and not os.path.exists(other_state['signing_gpg_dir']):
+        log_print(f"ERROR: signingGPG at "{other_state['signing_gpg_dir']}" does not exist")
+        sys.exit(1)
     log_print("Ensuring logs directory exists...")
     if other_state['logs_dir'] is None:
         log_print('ERROR: "logs_dir" was not specified!')