diff options
author | Luke Smith <luke@lukesmith.xyz> | 2018-04-12 15:21:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 15:21:07 -0700 |
commit | 7cacadd4475978a168c3740ce785742571cc1011 (patch) | |
tree | 5d2221d52e46983c18454efbb9e869512d3f17e9 | |
parent | 2f49576291484a78f3ac98b163d7989d09bb2a1f (diff) | |
parent | de65a15b047499d34a1a92031bec3f51ce417ff0 (diff) |
Merge pull request #50 from tokudan/dialog
Provide a sane error message in case dialog is not installed
-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 ea75771..7be5ce0 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 |