pantry/projects/gnupg.org/gpg
Jacob Heider fc9bc5d47f fix(gpg)
2023-11-11 21:58:36 -05:00

16 lines
No EOL
234 B
Bash
Executable file

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