pantry/projects/gnupg.org/gpg
2023-11-11 21:21:28 -05:00

15 lines
No EOL
211 B
Bash
Executable file

#!/bin/sh
d=$(dirname "$0")
etc="$d/../etc"
if [ ! -f "$etc/gpg.conf" ]; then
mkdir -p "$etc"
cat << EOF > "$etc"/gpg.conf
use-agent
pinentry-mode loopback
agent-program $d/gpg-agent
EOF
fi
"$d"/gpg-exec "$@"