From: Silvio Rhatto Date: Sat, 2 Jul 2016 22:18:51 +0000 (-0300) Subject: Check for mutt X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b73caeb79414ce9ae138962d0b8400b8daa4f35b;p=wrappers.git Check for mutt --- diff --git a/mail b/mail index 776f9f4..14b48bd 100755 --- a/mail +++ b/mail @@ -6,6 +6,16 @@ # Parameters BASENAME="`basename $0`" +# Check for mutt +if ! which mutt > /dev/null; then + if [ -x "/usr/bin/mail" ]; then + /usr/bin/mail + exit $? + else + exit 1 + fi +fi + # Check configuration if [ ! -e "$HOME/.custom/muttrc" ]; then mkdir -p $HOME/.custom/mutt