2015-11-23 15:08:20 +01:00
|
|
|
#!/bin/sh
|
2018-01-25 14:15:28 +01:00
|
|
|
|
|
|
|
if [[ $1 -eq 1 ]]; then
|
|
|
|
|
|
|
|
echo "SETTITLE title
|
|
|
|
SETPROMPT prompt
|
|
|
|
SETDESC PROMPT
|
2015-12-02 21:20:29 +01:00
|
|
|
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
|
2015-12-02 21:20:29 +01:00
|
|
|
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
|