This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
pinentry-dmenu-custom/test
Luca Bilke dbd0c5295c
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed
pull changes from rnpnr fork
2024-02-05 17:56:12 +01:00

43 lines
544 B
Bash
Executable file

#!/bin/sh
if [ $1 -eq 1 ]; then
echo "SETTITLE title
SETPROMPT prompt
SETDESC PROMPT
GETPIN
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
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