[fix] Provide more feedback about whiptail exit status to user

This commit is contained in:
William Wernert
2020-04-22 16:58:33 -04:00
parent 5b3584d738
commit 02cd1a7623

View File

@@ -118,11 +118,15 @@ whiptail_cancel() {
}
whiptail_check_exitstatus() {
if [ "$1" != 0 ]; then
case $1 in
1)
whiptail_cancel
fi
;;
255)
whiptail --title "Security Onion Setup" --msgbox "Whiptail error occured, exiting. Check log for details." 8 75
exit
;;
esac
}
whiptail_create_admin_user() {