From 69d038fe983012285447e1a01390f97b0dd36c33 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 17 Sep 2026 11:10:53 +0200 Subject: [PATCH] Make the mode selection clearer. --- recover_bad_signature.sh | 10 ++++++++-- recreate_bad_signature.sh | 7 +++++-- restore_bad_signature.sh | 4 +++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/recover_bad_signature.sh b/recover_bad_signature.sh index f868e02..baf0491 100755 --- a/recover_bad_signature.sh +++ b/recover_bad_signature.sh @@ -1049,8 +1049,14 @@ if ! $_revalidate_only_explicit && $terminal ; then blank_line echo -e "\033[37m\033[1mWhich mode should this run use?\033[m" echo "" - echo -e " \033[1m[1] Recovery\033[m - decrypt bad-signature files (temporarily skips the signature check), write them under ${DEFAULT_RECOVERY_BASE_DIR}/ and validate them" - echo " [2] Revalidate-only - re-run just the validation checks against files a previous recovery run already wrote to disk (same as '-V'); nothing is decrypted again and no config value is touched" + echo -e " \033[1m[1] Recovery\033[m - decrypt bad-signature files (temporarily skips the signature check), + write them under + \033[1m${DEFAULT_RECOVERY_BASE_DIR}/\033[m + and validate them" + echo "" + echo " [2] Revalidate-only - re-run just the validation checks against files a previous recovery run + already wrote to disk (same as '-V'); nothing is decrypted again and + no config value is touched" info "Just press Return to use the default: [1] Recovery." echo -n " Select mode by number [1]: " read _mode_choice diff --git a/recreate_bad_signature.sh b/recreate_bad_signature.sh index de899b5..6b1236b 100755 --- a/recreate_bad_signature.sh +++ b/recreate_bad_signature.sh @@ -1010,8 +1010,11 @@ if ! $_dry_run_explicit && $terminal ; then blank_line echo -e "\033[37m\033[1mWhich mode should this run use?\033[m" echo "" - echo -e " \033[1m[1] Dry-run\033[m - go through everything (selection, re-validation, share check, reporting), but delete, back up, create or verify NOTHING" - echo " [2] Real recreate - actually back up, DELETE the broken file, create it fresh and verify each one" + echo -e " \033[1m[1] Dry-run\033[m - go through everything (selection, re-validation, share check, + reporting), but delete, back up, create or verify NOTHING" + echo "" + echo " [2] Real recreate - actually back up, DELETE the broken file, create it fresh + and verify each one" info "Just press Return to use the default: [1] Dry-run." echo -n " Select mode by number [1]: " read _mode_choice diff --git a/restore_bad_signature.sh b/restore_bad_signature.sh index dd9ab6f..197cb34 100755 --- a/restore_bad_signature.sh +++ b/restore_bad_signature.sh @@ -1040,7 +1040,9 @@ if ! $_dry_run_explicit && $terminal ; then blank_line echo -e "\033[37m\033[1mWhich mode should this run use?\033[m" echo "" - echo -e " \033[1m[1] Dry-run\033[m - go through everything (selection, re-validation, reporting), but write, back up and verify NOTHING" + echo -e " \033[1m[1] Dry-run\033[m - go through everything (selection, re-validation, reporting), + but write, back up and verify NOTHING" + echo "" echo " [2] Real restore - actually back up, overwrite and verify each file in Nextcloud" info "Just press Return to use the default: [1] Dry-run." echo -n " Select mode by number [1]: "