mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
gpg: launch agent before starting the shell
This commit is contained in:
@@ -6,6 +6,9 @@ export GNUPGHOME=~/.gnupg/trezor
|
|||||||
# Make sure that the device is unlocked before starting the shell
|
# Make sure that the device is unlocked before starting the shell
|
||||||
trezor-gpg-unlock
|
trezor-gpg-unlock
|
||||||
|
|
||||||
|
# Make sure TREZOR-based gpg-agent is running
|
||||||
|
gpg-connect-agent --agent-program "$(which trezor-gpg-agent)" </dev/null
|
||||||
|
|
||||||
COMMAND=$*
|
COMMAND=$*
|
||||||
if [ -z "${COMMAND}" ]
|
if [ -z "${COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user