couple of shim fixes

This commit is contained in:
Jacob Heider 2023-11-11 21:21:28 -05:00
parent 7bb3342d56
commit 5745f786da
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

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