From 3bb2f194d4ab896179b3f9278096ac886bb0ace7 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 4 Jan 2024 03:31:48 -0500 Subject: [PATCH] Standardize language (vars): _proceed/_sure -> _sure --- lib/stweak.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index 8b60e0c..d50eb88 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -241,10 +241,10 @@ def ssh_config(_reconfig=False): # device id configuration def dev_id_config(_port, _username_ssh, _ip, _identity, _reconfig=False): if _reconfig: - _proceed = curses_radio(('no', 'yes'), "WARNING: ensure this sshyp client is synchronized (up-to-date) before " - "changing the device id\n\nfailure to do so may result in sync" - "hronization issues\n\nare you sure you wish to change the device id?") - if _proceed != 1: + _sure = curses_radio(('no', 'yes'), "WARNING: ensure this sshyp client is synchronized (up-to-date) before " + "changing the device id\n\nfailure to do so may result in sync" + "hronization issues\n\nare you sure you wish to change the device id?") + if _sure != 1: return from sshyp import copy_id_check, string_gen _device_id_prefix = curses_text('set this device\'s id:\n\n\n\n\n(ctrl+g/enter to confirm)\n\nimportant: this ' @@ -289,10 +289,10 @@ def refresh_encryption(): _directory = f"{home}/.local/share/sshyp" # warn the user of potential data loss and prompt to continue - _proceed = curses_radio(('no', 'yes'), "WARNING: proceeding with this action will remove/overwrite any directories" + _sure = curses_radio(('no', 'yes'), "WARNING: proceeding with this action will remove/overwrite any directories" f" matching the following:\n\n{home}/.local/share/sshyp.old\n{home}/.local/" "share/sshyp.new\n\nare you sure you wish to re-encrypt all entries?") - if _proceed != 1: + if _sure != 1: return 3 # set new gpg key