Invert the logic

This commit is contained in:
Bob Mottram 2014-09-23 15:21:45 +01:00
parent eb8f99e15f
commit 94dd7ba9b2
1 changed files with 1 additions and 1 deletions

View File

@ -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