dotfiles/.scripts/checkmail.sh
2017-03-04 14:31:11 -08:00

12 lines
205 B
Bash
Executable file

#!/usr/bin/env bash
STATE=`nmcli networking connectivity`
if [ $STATE = 'full' ]
then
#/usr/local/bin/msmtp-runqueue.sh
$HOME/.scripts/imap.sh
exit 0
fi
echo "No internet connection."
exit 0