gpg: simplify Python entry point and refactor Bash scripts a bit

Now there is a single 'trezor-gpg' tool, with various subcommands.
This commit is contained in:
Roman Zeyde
2017-04-26 22:05:49 +03:00
parent 02c8e729b7
commit eb525e1b62
5 changed files with 44 additions and 28 deletions

View File

@@ -13,10 +13,10 @@ then
fi
# 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
gpg-connect-agent --agent-program "$(dirname $0)/gpg-agent" </dev/null
COMMAND=$*
if [ -z "${COMMAND}" ]