summaryrefslogtreecommitdiff
path: root/scripts/pinentry-auto
blob: 4b90cc1a0ce6ec541291f070f7b1a5fb523f5c52 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
set -Ceu

if ps -e | grep -q X; then
	/home/"$USER"/bin/pinentry-dmenu "$@"
else
	pinentry-curses "$@"
fi