summaryrefslogtreecommitdiff
path: root/mutt-wizard.sh
diff options
context:
space:
mode:
authorDaniel Frank <git@danielfrank.net>2018-04-13 00:03:33 +0200
committerDaniel Frank <git@danielfrank.net>2018-04-13 00:07:24 +0200
commitde65a15b047499d34a1a92031bec3f51ce417ff0 (patch)
tree9693d80c10201b9bc7e86c8eea497caf59d2a366 /mutt-wizard.sh
parenteaa224d0100a2b81e5e2f14ff0beecc7eb294dfa (diff)
Provide a sane error message in case dialog is not installed
(cherry picked from commit ea233da43a9993863cbb68e30eb4eeb1cdd32386)
Diffstat (limited to 'mutt-wizard.sh')
-rwxr-xr-xmutt-wizard.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index b28ad1c..96ff5fe 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -257,5 +257,6 @@ $(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g')
5) inventory && for i in $userchoices; do removeAccount $i ; done;;
6) (dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) ;;
7) clear && break ;;
+*) echo "Unable to read response from dialog. Exiting." >&2; exit 2
esac
done