Try to make the copy of gpg.rc work on more distros.

This commit is contained in:
Storm Dragon 2021-01-16 16:35:13 -05:00
parent c572fbcbc1
commit 267fbbbc9a

View File

@ -199,9 +199,7 @@ EOF
echo 'video/*; mpv --quiet --no-video %s; needsterminal' >> "$muttHome/mailcap"
fi
if ! [ -f "$muttHome/gpg.rc" ]; then
if ! cp "/usr/share/doc/mutt/samples/gpg.rc" "$muttHome/" ; then
find /usr -name gpg.rc -exec cp "{}" "$muttHome/" \; 2> /dev/null
fi
find /usr -name gpg.rc -exec cp "{}" "$muttHome/" \; 2> /dev/null
echo "set pgp_autosign=yes" >> "$muttHome/gpg.rc"
echo "set crypt_autosign=yes" >> "$muttHome/gpg.rc"
echo "set pgp_replyencrypt=yes" >> "$muttHome/gpg.rc"