From de65a15b047499d34a1a92031bec3f51ce417ff0 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 13 Apr 2018 00:03:33 +0200 Subject: [PATCH] Provide a sane error message in case dialog is not installed (cherry picked from commit ea233da43a9993863cbb68e30eb4eeb1cdd32386) --- mutt-wizard.sh | 1 + 1 file changed, 1 insertion(+) 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