mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
couple of shim fixes
This commit is contained in:
parent
7bb3342d56
commit
5745f786da
1 changed files with 5 additions and 3 deletions
|
@ -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 "$@"
|
Loading…
Reference in a new issue