Provide a sane error message in case dialog is not installed
(cherry picked from commit ea233da43a9993863cbb68e30eb4eeb1cdd32386)
This commit is contained in:
parent
eaa224d010
commit
de65a15b04
@ -257,5 +257,6 @@ $(grep ~/.offlineimaprc -e "^accounts =" | sed 's/accounts =//g')
|
|||||||
5) inventory && for i in $userchoices; do removeAccount $i ; done;;
|
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) ;;
|
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 ;;
|
7) clear && break ;;
|
||||||
|
*) echo "Unable to read response from dialog. Exiting." >&2; exit 2
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user