commit de65a15b047499d34a1a92031bec3f51ce417ff0
parent eaa224d0100a2b81e5e2f14ff0beecc7eb294dfa
Author: Daniel Frank <git@danielfrank.net>
Date: Fri, 13 Apr 2018 00:03:33 +0200
Provide a sane error message in case dialog is not installed
(cherry picked from commit ea233da43a9993863cbb68e30eb4eeb1cdd32386)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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