aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-07-02 19:18:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-07-02 19:18:51 -0300
commitb73caeb79414ce9ae138962d0b8400b8daa4f35b (patch)
treee6fc7eb23ab0f22d0b19d3acc9327cdf477e444a
parent9dd3d1a1a585935ec51e9cd12a3a8d9d7f160970 (diff)
downloadwrappers-b73caeb79414ce9ae138962d0b8400b8daa4f35b.tar.gz
wrappers-b73caeb79414ce9ae138962d0b8400b8daa4f35b.tar.bz2
Check for mutt
-rwxr-xr-xmail10
1 files changed, 10 insertions, 0 deletions
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