From 94dd7ba9b2f3f72a0157efbe6d77c02987389b57 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Sep 2014 15:21:45 +0100 Subject: [PATCH] Invert the logic --- install-freedombone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 86c42419..0e6beeb3 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -840,7 +840,7 @@ function configure_gpg { sed -i "s|keyserver hkp://keys.gnupg.net|keyserver $GPG_KEYSERVER|g" /home/$MY_USERNAME/.gnupg/gpg.conf - if grep -q "# default preferences" /home/$MY_USERNAME/.gnupg/gpg.conf; then + if ! grep -q "# default preferences" /home/$MY_USERNAME/.gnupg/gpg.conf; then echo '' >> /home/$MY_USERNAME/.gnupg/gpg.conf echo '# default preferences' >> /home/$MY_USERNAME/.gnupg/gpg.conf echo 'personal-digest-preferences SHA256' >> /home/$MY_USERNAME/.gnupg/gpg.conf