2021-07-27 07:41:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
prompt="SETTITLE title
|
|
|
|
SETPROMPT prompt
|
|
|
|
SETDESC PROMPT
|
|
|
|
GETPIN"
|
|
|
|
|
|
|
|
confirm="SETTITLE title
|
|
|
|
SETPROMPT confirm
|
|
|
|
SETDESC CONFIRM
|
|
|
|
confirm"
|
|
|
|
|
|
|
|
repeat="SETTITLE title
|
|
|
|
SETPROMPT prompt
|
|
|
|
SETDESC REPEAT
|
|
|
|
SETREPEAT repeat
|
|
|
|
GETPIN"
|
|
|
|
|
|
|
|
case $1 in
|
2021-07-28 11:53:52 +00:00
|
|
|
1)
|
|
|
|
printf "%s\nBYE" "$prompt" \
|
|
|
|
| ./pinentry-dmenu
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
printf "%s\nBYE" "$confirm" \
|
|
|
|
| ./pinentry-dmenu
|
|
|
|
;;
|
|
|
|
3)
|
|
|
|
printf "%s\nBYE" "$repeat" \
|
|
|
|
| ./pinentry-dmenu
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
printf "%s\n%s\n%s\nBYE" "$prompt" "$confirm" "$repeat" \
|
|
|
|
| ./pinentry-dmenu
|
|
|
|
;;
|
2021-07-27 07:41:57 +00:00
|
|
|
esac
|