Added mut to dependancy checks lol.

This commit is contained in:
Storm Dragon 2016-07-15 10:32:06 -04:00
parent ad257f0e5a
commit 6deb05c1a5

View File

@ -12,10 +12,13 @@ muttHome=~/.muttest
# Functions # Functions
check_dependancies() check_dependancies()
{ {
local dep
for dep in gpg mutt ; do
if ! command -v gpg &> /dev/null ; then if ! command -v gpg &> /dev/null ; then
echo "gpg is not installed. Please install gnupg and run this script again." echo "$dep is not installed. Please install $dep and run this script again."
exit 1 exit 1
fi fi
done
if ! [ -d ~/.gnupg ]; then if ! [ -d ~/.gnupg ]; then
read -p "No configuration for GPG was found. to have ${0##*/} configure this for you, select Configure GPG from the main menu. Press enter to continue. " continue read -p "No configuration for GPG was found. to have ${0##*/} configure this for you, select Configure GPG from the main menu. Press enter to continue. " continue
fi fi