From f86aae9a40743fd01a859be9aa91847aa934600f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 2 Dec 2016 12:48:56 +0200 Subject: [PATCH] gpg: check that GnuPG v2 is installed --- scripts/gpg-init | 2 ++ scripts/gpg-shell | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/gpg-init b/scripts/gpg-init index e4045ca..b02b2d3 100755 --- a/scripts/gpg-init +++ b/scripts/gpg-init @@ -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" diff --git a/scripts/gpg-shell b/scripts/gpg-shell index a8def89..07f593d 100755 --- a/scripts/gpg-shell +++ b/scripts/gpg-shell @@ -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