pantry/projects/gnupg.org/gpg
Jacob Heider 3572a04c7f
fix(gpg)
maybe. hopefully.
2023-11-20 17:52:56 -05:00

16 lines
No EOL
243 B
Bash
Executable file

#!/bin/sh
d=$(dirname "$0")
etc="$d/../etc/gnupg"
export GNUPGHOME="${GNUPGHOME:-"$etc"}"
mkdir -p "$etc"
chmod 700 "$etc"
cat << EOF > "$etc"/gpg.conf
use-agent
pinentry-mode loopback
agent-program $d/gpg-agent
EOF
exec "$d"/gpg-exec "$@"