pinentry-dmenu/test

44 lines
550 B
Text
Raw Normal View History

#!/bin/sh
2018-01-25 14:15:28 +01:00
if [[ $1 -eq 1 ]]; then
echo "SETTITLE title
SETPROMPT prompt
SETDESC PROMPT
GETPIN
2018-01-25 14:15:28 +01:00
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
2016-02-07 14:49:31 +01:00
GETPIN
2018-01-25 14:15:28 +01:00
BYE" | ./pinentry-dmenu
else
echo "SETTITLE title
SETPROMPT prompt
SETDESC PROMPT
GETPIN
SETPROMPT confirm
SETDESC CONFIRM
confirm
2018-01-25 14:15:28 +01:00
SETPROMPT repeat
SETDESC REPEAT
SETREPEAT
GETPIN
2017-07-30 13:08:45 +02:00
BYE" | ./pinentry-dmenu
2018-01-25 14:15:28 +01:00
fi