17 lines
234 B
Bash
Executable File
17 lines
234 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
export GNUPGHOME=~/.gnupg/trezor
|
|
|
|
# Make sure that the device is unlocked before starting the shell
|
|
trezor-gpg-unlock
|
|
|
|
COMMAND=$*
|
|
if [ -z "${COMMAND}" ]
|
|
then
|
|
gpg2 --list-public-keys
|
|
${SHELL}
|
|
else
|
|
${COMMAND}
|
|
fi
|