blob: b46687e538b56048b74d8964f8815a0ef3c6545d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
# choose pinentry depending on PINENTRY_USER_DATA
# requires pinentry-curses and pinentry-gtk2
# this *only works* with gpg 2
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802020
case $PINENTRY_USER_DATA in
gtk)
exec /usr/bin/pinentry-gtk-2 "$@"
;;
none)
exit 1 # do not ask for passphrase
;;
*)
exec /usr/bin/pinentry-curses "$@"
esac
|