pantry/projects/gnupg.org/gpg
Andrew fec72e04a0
gpg fix (#3996)
* fix

* set env & run gpg-agent

* wip

* wip

* wip

* .

* wip

* wip

* final

* final...

* gpg-agent should auto-start

* try with entrypoint

* .

* .

* wip

* wip

* wip

* .

* wip

* .

* omg :D

* .

* oops

* this is some kind of horror...

* .

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2023-11-11 18:34:33 -05:00

13 lines
No EOL
187 B
Bash

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