From 3ff09fc7a9da976263bf13d66f9b3364432be5f5 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sat, 4 Jun 2022 17:17:15 +0900 Subject: [PATCH] Add path validation for "signingGPG" directory --- update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.py b/update.py index 9797246..067a2ff 100755 --- 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!') -- 2.49.0