mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Standardize language (vars): _proceed/_sure -> _sure
This commit is contained in:
+4
-4
@@ -241,10 +241,10 @@ def ssh_config(_reconfig=False):
|
|||||||
# device id configuration
|
# device id configuration
|
||||||
def dev_id_config(_port, _username_ssh, _ip, _identity, _reconfig=False):
|
def dev_id_config(_port, _username_ssh, _ip, _identity, _reconfig=False):
|
||||||
if _reconfig:
|
if _reconfig:
|
||||||
_proceed = curses_radio(('no', 'yes'), "WARNING: ensure this sshyp client is synchronized (up-to-date) before "
|
_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"
|
"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?")
|
"hronization issues\n\nare you sure you wish to change the device id?")
|
||||||
if _proceed != 1:
|
if _sure != 1:
|
||||||
return
|
return
|
||||||
from sshyp import copy_id_check, string_gen
|
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 '
|
_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"
|
_directory = f"{home}/.local/share/sshyp"
|
||||||
|
|
||||||
# warn the user of potential data loss and prompt to continue
|
# 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/"
|
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?")
|
"share/sshyp.new\n\nare you sure you wish to re-encrypt all entries?")
|
||||||
if _proceed != 1:
|
if _sure != 1:
|
||||||
return 3
|
return 3
|
||||||
|
|
||||||
# set new gpg key
|
# set new gpg key
|
||||||
|
|||||||
Reference in New Issue
Block a user