diff options
author | Moritz Luedecke <ritze@skweez.net> | 2018-01-25 14:15:28 +0100 |
---|---|---|
committer | Moritz Luedecke <ritze@skweez.net> | 2018-01-25 14:17:57 +0100 |
commit | a9cba79ff9e0b5148a0467a047b087787a91f9a0 (patch) | |
tree | 78f0c17c1fe131f90a885c826dfd1f47eb6f2ff5 /test | |
parent | 631b801c00fae61f28989c3a829562b149dc9165 (diff) |
Add repeat function
Diffstat (limited to 'test')
-rwxr-xr-x | test | 42 |
1 files changed, 38 insertions, 4 deletions
@@ -1,9 +1,43 @@ #!/bin/sh -echo "SETDESC testing pinentry-dmenu, type whatever -SETPROMPT whatever: + +if [[ $1 -eq 1 ]]; then + +echo "SETTITLE title +SETPROMPT prompt +SETDESC PROMPT GETPIN -SETDESC type more of whatever: +BYE" | ./pinentry-dmenu + +elif [[ $1 -eq 2 ]]; then + +echo "SETTITLE title +SETPROMPT confirm +SETDESC CONFIRM +confirm +BYE" | ./pinentry-dmenu + +elif [[ $1 -eq 3 ]]; then + +echo "SETTITLE title +SETPROMPT prompt +SETDESC REPEAT +SETREPEAT repeat GETPIN -SETDESC testing confirmation +BYE" | ./pinentry-dmenu + +else + +echo "SETTITLE title +SETPROMPT prompt +SETDESC PROMPT +GETPIN +SETPROMPT confirm +SETDESC CONFIRM confirm +SETPROMPT repeat +SETDESC REPEAT +SETREPEAT +GETPIN BYE" | ./pinentry-dmenu + +fi |