From 46903b6225c407cbbdaea629c858e7197a96be11 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Wed, 5 Nov 2014 16:47:15 +0000 Subject: [PATCH] Improve "confidence" recipe. Check .gnupg dir after the fact. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e842774..3db6517 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,8 @@ unlock: confidence: @if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg should not exist. If it does, bugs may polute your .gnupg configuration. If the code has no bugs everything will be fine. Do you feel lucky?'; false ; fi - if which >/dev/null gpg-agent ; then pkill gpg-agent ; rm -rf /tmp/tmp.* ; fi - export PATH=~/gitwork/blackbox/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin ; + @if which >/dev/null gpg-agent ; then pkill gpg-agent ; rm -rf /tmp/tmp.* ; fi + @export PATH=~/gitwork/blackbox/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin ; cd ~/gitwork/blackbox && tools/confidence_test.sh + @if which >/dev/null gpg-agent ; then pkill gpg-agent ; fi + @if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg was created which means the scripts might be poluting GnuPG configuration. Fix this bug.'; false ; fi