gpg: add optional arguments to `gpg-shell`

nistp521
Roman Zeyde 8 years ago
parent 2eab2a152c
commit c30e5f5a67
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -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

Loading…
Cancel
Save