gpg: add optional arguments to gpg-shell

This commit is contained in:
Roman Zeyde
2016-11-04 19:33:05 +02:00
parent 2eab2a152c
commit c30e5f5a67

View File

@@ -2,9 +2,15 @@
set -eu
export GNUPGHOME=~/.gnupg/trezor
gpg2 --list-public-keys
# Make sure that the device is unlocked before starting the shell
trezor-gpg-unlock
${SHELL}
COMMAND=$*
if [ -z "${COMMAND}" ]
then
gpg2 --list-public-keys
${SHELL}
else
${COMMAND}
fi