mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 17:05:07 +03:00
fec72e04a0
* 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>
13 lines
No EOL
187 B
Bash
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 "$@" |