From f3b49ff55381eec3b96bd1764c6b8e3714eb6d1c Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 29 Apr 2016 11:14:27 +0300 Subject: [PATCH] gpg: use strict bash mode for demo --- trezor_agent/gpg/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trezor_agent/gpg/test.sh b/trezor_agent/gpg/test.sh index 4f21a02..9a5618f 100644 --- a/trezor_agent/gpg/test.sh +++ b/trezor_agent/gpg/test.sh @@ -1,6 +1,6 @@ # NEVER RUN ON YOUR OWN REAL GPG KEYS!!!!! THEY WILL BE DELETED!!!!! -set -x -(cd ~/.gnupg && rm -r openpgp-revocs.d/ private-keys-v1.d/ pubring.kbx* trustdb.gpg /tmp/log *.gpg; killall gpg-agent) +set -x -e -u +(cd ~/.gnupg && rm -rf openpgp-revocs.d/ private-keys-v1.d/ pubring.kbx* trustdb.gpg /tmp/log *.gpg; killall gpg-agent) gpg2 --full-gen-key --expert gpg2 --export > romanz.pub NOW=`date +%s`