gpg: check that GnuPG v2 is installed

This commit is contained in:
Roman Zeyde
2016-12-02 12:48:56 +02:00
parent fc070e3ca0
commit f86aae9a40
2 changed files with 4 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -eu
gpg2 --version >/dev/null # verify that GnuPG 2 is installed
USER_ID="${1}"
HOMEDIR=~/.gnupg/trezor
CURVE=${CURVE:="nist256p1"} # or "ed25519"

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -eu
gpg2 --version >/dev/null # verify that GnuPG 2 is installed
export GNUPGHOME=~/.gnupg/trezor
# Make sure that the device is unlocked before starting the shell