From b73caeb79414ce9ae138962d0b8400b8daa4f35b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 2 Jul 2016 19:18:51 -0300 Subject: Check for mutt --- mail | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3