Added mut to dependancy checks lol.
This commit is contained in:
parent
ad257f0e5a
commit
6deb05c1a5
@ -12,10 +12,13 @@ muttHome=~/.muttest
|
|||||||
# Functions
|
# Functions
|
||||||
check_dependancies()
|
check_dependancies()
|
||||||
{
|
{
|
||||||
if ! command -v gpg &> /dev/null ; then
|
local dep
|
||||||
echo "gpg is not installed. Please install gnupg and run this script again."
|
for dep in gpg mutt ; do
|
||||||
exit 1
|
if ! command -v gpg &> /dev/null ; then
|
||||||
fi
|
echo "$dep is not installed. Please install $dep and run this script again."
|
||||||
|
exit 1
|
||||||
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user