mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
couple of shim fixes
This commit is contained in:
parent
7bb3342d56
commit
5745f786da
|
@ -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 "$@"
|
Loading…
Reference in a new issue