1
0
Fork 0
xactfetch/pinentry-stub.sh

20 lines
348 B
Bash
Executable File

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
while IFS=' ' read -r cmd args; do
case "${cmd}" in
GETPIN)
printf 'D %s\n' "$(cat "${PINENTRY_PASSWORD_FILE}")"
;;
SETPROMPT|SETTITLE|SETDESC)
echo OK
;;
BYE)
exit 0
;;
*)
printf 'ERR Unknonw command\n'
;;
esac
done