diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-07-06 01:30:40 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-07-06 01:31:56 +0530 |
| commit | 0e7d961207655f7de5bfabb9602075f4a490020c (patch) | |
| tree | 3b8e7145565a18a414cb50d1b69da7a16b323f85 | |
| parent | 43ae89ea3a3ca139378cb7b6d4580248a44358b6 (diff) | |
| download | anypinentry-0e7d961207655f7de5bfabb9602075f4a490020c.tar.gz anypinentry-0e7d961207655f7de5bfabb9602075f4a490020c.zip | |
cleanup
Diffstat (limited to '')
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | anypinentry | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -2,3 +2,5 @@ AnyPinentry is a wrapping interface to all kinds of prompts instead of gnupg's pinentry. You can now use any interface for password and confirmation prompts (`dmenu`, `rofi`, `read`, `systemd-ask-password`, `curses`, `etc`). +WIP + diff --git a/anypinentry b/anypinentry index 01f8675..f550be1 100755 --- a/anypinentry +++ b/anypinentry @@ -13,7 +13,7 @@ description=""; keyinfo=""; repeat=""; -AP_REPEAT_ERROR_STRING="Passwords don't match"; +error__password_mismatch="Passwords don't match"; AP_YES="Yes"; AP_NO="No"; @@ -66,7 +66,7 @@ password_prompt() { # If password repeat attempt failed, try again, # Else continue if [[ ! -z "$2" ]] && [[ "$pass" != "$2" ]]; then - show_error "$AP_REPEAT_ERROR_STRING"; + show_error "$error__password_mismatch"; password_prompt "$repeat"; else [[ ! -z "$pass" ]] && echo "D $pass"; @@ -98,7 +98,7 @@ interpret_command() { SETKEYINFO) keyinfo="$data" && echo "OK" ;; SETREPEAT) repeat="${data:-"repeat"}" && echo "OK" ;; SETDESC) description="$data" && echo "OK" ;; - SETREPEATERROR) AP_REPEAT_ERROR_STRING="$data" && echo "OK" ;; + SETREPEATERROR) error__password_mismatch="$data" && echo "OK" ;; CONFIRM) confirm_prompt ;; GETPIN) password_prompt "$repeat" "" ;; BYE) echo "OK closing connection" && exit 0 ;; |
