diff options
author | Daniel Frank <git@danielfrank.net> | 2018-04-13 00:03:33 +0200 |
---|---|---|
committer | Daniel Frank <git@danielfrank.net> | 2018-04-13 00:07:24 +0200 |
commit | de65a15b047499d34a1a92031bec3f51ce417ff0 (patch) | |
tree | 9693d80c10201b9bc7e86c8eea497caf59d2a366 /mutt-wizard.sh | |
parent | eaa224d0100a2b81e5e2f14ff0beecc7eb294dfa (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-x | mutt-wizard.sh | 1 |
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 |