gpg: launch agent before starting the shell

nistp521
Roman Zeyde 8 years ago
parent 83f17704cb
commit d22cd7512d
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -6,6 +6,9 @@ export GNUPGHOME=~/.gnupg/trezor
# Make sure that the device is unlocked before starting the shell
trezor-gpg-unlock
# Make sure TREZOR-based gpg-agent is running
gpg-connect-agent --agent-program "$(which trezor-gpg-agent)" </dev/null
COMMAND=$*
if [ -z "${COMMAND}" ]
then

Loading…
Cancel
Save