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