14 lines
388 B
Bash
Executable File
14 lines
388 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
GPG_SOCK=$(echo "$GPG_AGENT_INFO" | cut -d: -f1)
|
|
if [ -z "$GPG_SOCK" ] ; then
|
|
echo "No GPG agent configured - this won't work out." >&2
|
|
exit 1
|
|
fi
|
|
|
|
vagrant ssh zcash-build -- rm -f /home/vagrant/.gnupg/S.gpg-agent
|
|
vagrant ssh zcash-build -- -t \
|
|
-R /home/vagrant/.gnupg/S.gpg-agent:$GPG_SOCK \
|
|
-o StreamLocalBindUnlink=yes \
|
|
-o ExitOnForwardFailure=yes
|