Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put brew install mutt at end, in case it fails #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions mutt/installMuttForGmailOrApps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ if [ -e $muttdirExpanded ]; then
exit
fi

echo
echo '... Attempting mutt install'
brew install mutt
if [ $? -ne 0 ]; then
echo -e 'brew mutt install: \033[31mfailed\033[0m'
echo 'Exiting'
exit
else
echo 'mutt install: \033[32mdone\033[0m'
fi

echo
echo "... Setting $muttrcFile"
{ # See https://stackoverflow.com/a/51113160/1071459
Expand All @@ -70,3 +59,14 @@ echo "... Creating directories in $muttdir"
mkdir -p $muttdirExpanded/cache/headers
mkdir -p $muttdirExpanded/cache/bodies
mkdir -p $muttdirExpanded/certificates

echo
echo '... Attempting mutt install'
brew install mutt
if [ $? -ne 0 ]; then
echo -e 'brew mutt install: \033[31mfailed\033[0m'
echo 'Exiting'
exit
else
echo 'mutt install: \033[32mdone\033[0m'
fi