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

23 lines
419 B
Bash
Executable file

#!/bin/sh
d="$(dirname "$0")"
etc="$d/../etc/gnupg"
export GNUPGHOME="${GNUPGHOME:-"$etc"}"
<<<<<<< HEAD
mkdir -p "$etc"
chmod 700 "$etc"
cat << EOF > "$etc"/gpg.conf
=======
if [ ! -f "$etc/gpg.conf" ]; then
mkdir -p "$etc"
chmod 700 "$etc"
cat << EOF > "$etc"/gpg.conf
>>>>>>> 055bba74 (deps on `*` considered harmful)
use-agent
pinentry-mode loopback
agent-program $d/gpg-agent
EOF
exec "$d"/gpg-exec "$@"